public ActionResult Estate(Customer cus) { try { var customer = new Customer { ClientId = cus.ClientId, ClientGroup = cus.ClientGroup, OrgName = cus.OrgName, Branch = cus.Branch }; db.Customers.Add(customer); db.SaveChanges(); } catch (Exception ex) { ModelState.AddModelError("",ex.Message); } return View(); }
default(int)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)