Esempio 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
            });
        }
Esempio n. 2
0
 public Root <EmployeeDto> SearchEmployee([FromUri] EmployeeSearchCriteria employeeSearchCriteria)
 {
     return(new Root <EmployeeDto> {
         Items = _employeeFinder.FindEmployees(employeeSearchCriteria)
     });
 }