예제 #1
0
        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));
        }
예제 #2
0
        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));
            }
        }