public JsonResult UpdateParty(PartyTypeModel partymodel) { if (ModelState.IsValid) { partyService.Edit(partymodel); return(Json(true, JsonRequestBehavior.AllowGet)); } return(Json(false, JsonRequestBehavior.AllowGet)); }