コード例 #1
0
 public ActionResult UpdateAddressInfo(AddressInfoModel model)
 {
     try
     {
         if (ModelState.IsValid)
         {
             int id = updateOperation.AddressInformationUpdate(model);
             if (id > 0)
             {
                 ModelState.Clear();
                 ViewBag.Success = "Inserted Successfully";
             }
             else
             {
                 ViewBag.Success = "Failed!";
             }
         }
         return(RedirectToAction("Studentslist", "ShowDetails"));
     }
     catch (Exception ex)
     {
         return(View(ex));
     }
 }