public ActionResult Add(EducationFormat educationformat, string hdEducationFormatID) { EducationFormatViewModel educationModel = new EducationFormatViewModel(); if (hdEducationFormatID == "") { educationformat.OrganizationName = (_clientService.GetOrganizationByID(HCRGCLIENT.OrganizationID)).OrganizationName; educationformat.ClientID = HCRGCLIENT.ClientID; var educationFormatID = _educationService.AddEducationFormat(Mapper.Map <HCRGUniversityMgtApp.NEPService.EducationService.EducationFormat>(educationformat)); educationformat.EducationFormatID = educationFormatID; educationformat.flag = true; } else { educationformat.EducationFormatID = Convert.ToInt32(hdEducationFormatID); var aboutusID = _educationService.UpdateEducationFormat(Mapper.Map <HCRGUniversityMgtApp.NEPService.EducationService.EducationFormat>(educationformat)); educationformat.flag = false; } return(Json(educationformat, GlobalConst.Message.text_html)); }