public IStatusCodeActionResult GetAll() { List <EmployeeModel> employees = factoryService.GetAll(); if (employees == null) { return(NotFound()); } return(new OkObjectResult(employees)); }
public IStatusCodeActionResult GetAll() { List <EmployeeModel> employees = factoryService.GetAll(); if (employees == null) { return(NotFound()); } return(new OkObjectResult(employees)); }