I have a controller with a view at the end to show details of a company. I am making a code that allows you to generate a url for the company details through goo.gl to make it easier and more enjoyable to share, and I need to put as a parameter the input to the view . This link is stored in the database, associated with my template. See:
public ActionResult scoreDetails(int id)
{
res = PresentationServices.Helper.GetCompanyDetails(id);
//ShortLink
ViewBag.shortLink =
PresentationServices.Helper.GetCompanyShortLink(id, "LINK PARA A VIEW" );
return View(res);
}