public ActionResult CreateEdit(UDesignation designation, string Action) { if (ModelState.IsValid) { if (!designation.Id.Equals(Guid.Empty)) { designation._Designation.CountryProgrammeId = countryProg.Id; if (designationService.EditDesignation(designation._Designation)) { designation = new UDesignation(); ModelState.Clear(); } } else { designation._Designation.CountryProgrammeId = countryProg.Id; if (designationService.AddDesignation(designation._Designation)) { designation = new UDesignation(); ModelState.Clear(); } } } return(ListView()); }