Exemple #1
0
 public ActionResult Detail(string pid)
 {
     if (string.IsNullOrEmpty(pid))
     {
         return(RedirectPermanent(Url.Content("~/Prospect/Index")));
     }
     else
     {
         var data = _PersonBAL.Prospect_GetAllByIdBAL(pid);
         if (data == null)
         {
             ViewData["model"] = Url.Content("~/Prospect/Index");
             return(View("Static/NotFound"));
         }
         else
         {
             ViewData["model"] = data;
             return(View());
         }
     }
 }