public IActionResult AddBanGuarantee(GuaranteeView request)
        {
            request.UserId = _httpContextAccessor.HttpContext.Request.Cookies["UserId"];
            var response = _iAddGuaranteeService.AddBanGuarantee(request);

            return(RedirectToAction("Index", "AdminReport"));
        }
Beispiel #2
0
        public IActionResult AddBanGuarantee(GuaranteeView view)
        {
            var response = _addGuarantee.AddBanGuarantee(view);

            if (response.isSuccess == false)
            {
                return(null);
            }
            return(Ok(response));
        }