how to add text in base url using .net core code example Example: mvc get base url Request.Url.GetLeftPart(UriPartial.Authority) + Url.Content("~")