Exemplo n.º 1
0
 public ActionResult EditArtist()
 {
     if (Url.RequestContext.RouteData.Values["id"] != null)
     {
         int          ArtistId = (int)Double.Parse(Url.RequestContext.RouteData.Values["id"].ToString());
         DetailArtist model    = DetailArtistDB.DetailFromId(ArtistId);
         Cookies.CreateDay(model.Birthdate);
         Cookies.Today();
         return(View(model));
     }
     else
     {
         return(RedirectToAction("ListArtist"));
     }
 }