Beispiel #1
0
        public ActionResult Edit(LoanViewModel cvm)
        {
            GLobalClient gc = new GLobalClient();

            gc.Edit(cvm.LoanModel);
            return(RedirectToAction("Index"));
        }
Beispiel #2
0
 public ActionResult Edit(CustomerViewModel cvm)
 {
     try
     {
         if (cvm.CustomerModel.ContactEmail != null)
         {
             gc.Edit(cvm.CustomerModel);
             TempData["Message"] = "Customer Added Succesfully";
             return(RedirectToAction("Index"));
         }
         return(View("create"));
     }
     catch (Exception ex)
     {
         WebLog.Log(ex.Message.ToString());
         return(null);
     }
 }