2
I have a controller with a view at the end to show details of a company. I am making a code that allows generating a url to the company details through the goo.Gl to be easier and enjoyable to share, and I need to put as input the link to the view. This link is stored in the database, associated with my model. 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);
}
Why
cast
ofint
in a variable that isint
(int)id
????– novic
for nothing kkk, thanks for the repair I already took out of my code.
– ihavenokia