public static BussinessLogicComsumer getInstance() { if (instance == null) { instance = new BussinessLogicComsumer(); } return(instance); }
public EmployeeDTO Get(int id) { var employee = BussinessLogicComsumer.getInstance().facade.getEmployee(id); if (employee.id != 0) { return(employee); } throw new HttpResponseException(HttpStatusCode.NotFound); }
public List <EmployeeDTO> Get() { return(BussinessLogicComsumer.getInstance().facade.getEmployees()); }