public IActionResult AddBanGuarantee(GuaranteeView request) { request.UserId = _httpContextAccessor.HttpContext.Request.Cookies["UserId"]; var response = _iAddGuaranteeService.AddBanGuarantee(request); return(RedirectToAction("Index", "AdminReport")); }
public IActionResult AddBanGuarantee(GuaranteeView view) { var response = _addGuarantee.AddBanGuarantee(view); if (response.isSuccess == false) { return(null); } return(Ok(response)); }