Esempio n. 1
0
        public IActionResult AddService(AddAuthorizedService request)
        {
            request.UserId = _httpContextAccessor.HttpContext.Request.Cookies["UserId"];
            var response = _iAddAuthorizedServiceService.AddService(request);

            return(Ok(response));
        }
        public IActionResult AddService(AddAuthorizedService view)
        {
            var response = _addAuthorizedService.AddService(view);

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