public async Task <ActionResult> GetEmployee(int id) { var res = await employeeProvider.GetEmployeeAsync(id); if (res.IsSuccess) { return(Ok(res.employee)); } return(NotFound(res.ErrorMessage)); }