コード例 #1
0
        public IActionResult GetEmployees()
        {
            var getEmployees = employeeDataContext.GetEmployees();

            if (getEmployees is null)
            {
                return(Ok(ApiResponse.CreateSuccessResponse(getEmployees, "No data found")));
            }
            else
            {
                return(Ok(ApiResponse.CreateSuccessResponse(getEmployees)));
            }
        }