Beispiel #1
0
        public async Task <IActionResult> GetAllDepartmentList()
        {
            string userId = _httpContextAccessor.HttpContext.Request.Cookies["UserId"];
            GetAllDepartmentListResponse response = _iPP_OTService.GetAllDepartmentList(Convert.ToInt32(userId));

            return(Ok(response));
        }
        public IActionResult GetAllDepartmentList(int UserId)
        {
            var response = _pp_otService.GetAllDepartmentList(UserId);

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