public ActionResult Add(ClientDataModel model) { if (ModelState.IsValid) { ClientData Goods = model.MapTo <ClientDataModel, ClientData>(); _clientDataService.Insert(Goods); return(RedirectToAction("Index")); } model.ClientTypeList = _commonController.GetClientTypeList(); return(View(model)); }