Пример #1
0
        public IActionResult AddOvertimeRequest(OvertimeRequestView request)
        {
            request.UserId = _httpContextAccessor.HttpContext.Request.Cookies["UserId"];
            var response = _iPP_OTService.AddOvertimeRequest(request);

            return(RedirectToAction("Index", "PP_OT"));
        }
        public IActionResult AddOvertimeRequest(OvertimeRequestView view)
        {
            var response = _pp_otService.AddOvertimeRequest(view);

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