Example #1
0
 public ActionResult Edit()
 {
     if (RouteData.Values["id"] != null)
     {
         int  nid      = 0;
         bool isnumber = int.TryParse(RouteData.Values["id"].ToString(), out nid);
         if (isnumber)
         {
             MailUsers record = MailManager.GetMailUsersById(nid);
             return(View(record));
         }
         else
         {
             return(View());
         }
     }
     else
     {
         return(View());
     }
 }