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

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

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