コード例 #1
0
        public async Task <ActionResult> GetEmployees()
        {
            var res = await employeeProvider.GetEmployeesAsync();

            if (res.IsSuccess)
            {
                return(Ok(res.employees));
            }
            return(NotFound(res.ErrorMessage));
        }