Exemplo n.º 1
0
        private AppActionResult GetData()
        {
            _listEmployeeDto = _employeeFinder.FindEmployees(new EmployeeSearchCriteria());
            if (_listEmployeeDto == null)
            {
                throw new OwnAppException("NoData", (int)ErrorNumbersApp.EmployeeListGetData);
            }

            return(new AppActionResult()
            {
                Success = true
            });
        }
Exemplo n.º 2
0
 public Root <EmployeeDto> SearchEmployee([FromUri] EmployeeSearchCriteria employeeSearchCriteria)
 {
     return(new Root <EmployeeDto> {
         Items = _employeeFinder.FindEmployees(employeeSearchCriteria)
     });
 }