Beispiel #1
0
        public async Task <IActionResult> GetAllOvertimeList(OvertimeFilter OvertimeFilterRequest)
        {
            OvertimeFilterRequest.searchStartDate = OvertimeFilterRequest.searchStartDate == DateTime.MinValue ? DateTime.MinValue : OvertimeFilterRequest.searchStartDate;
            OvertimeFilterRequest.searchEndDate   = OvertimeFilterRequest.searchEndDate == DateTime.MinValue ? DateTime.MaxValue : OvertimeFilterRequest.searchEndDate;
            OvertimeFilterRequest.UserId          = _httpContextAccessor.HttpContext.Request.Cookies["UserId"];
            GetAllOvertimeListResponse response = _iPP_OTService.GetAllOvertimeList(OvertimeFilterRequest);

            return(Ok(response));
        }
        public IActionResult GetAllOvertimeList(OvertimeFilter request)
        {
            var response = _pp_otService.GetAllOvertimeList(request);

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