public IActionResult DeleteFirm(string firmId) { var response = _firmService.DeleteFirm(firmId); if (!response) { return(OK(StatusCodeType.HAS_EXCEPTION, StatusMessage.HAS_EXCEPTION, response)); } return(OK(StatusCodeType.SUCCESS, StatusMessage.SUCCESS, response)); }
public ActionResult DeleteFirm(int FirmId) { var record = _FirmService.GetFirm(FirmId); if (record != null) { var result = _FirmService.DeleteFirm(FirmId); TempData["resultMessage"] = "Firm Deleted Successfully"; var res = new { success = true, }; return(Json(res, JsonRequestBehavior.AllowGet)); } else { var res = new { success = false }; return(Json(res, JsonRequestBehavior.AllowGet)); } }