コード例 #1
0
 public static BussinessLogicComsumer getInstance()
 {
     if (instance == null)
     {
         instance = new BussinessLogicComsumer();
     }
     return(instance);
 }
コード例 #2
0
        public EmployeeDTO Get(int id)
        {
            var employee = BussinessLogicComsumer.getInstance().facade.getEmployee(id);

            if (employee.id != 0)
            {
                return(employee);
            }
            throw new HttpResponseException(HttpStatusCode.NotFound);
        }
コード例 #3
0
 public List <EmployeeDTO> Get()
 {
     return(BussinessLogicComsumer.getInstance().facade.getEmployees());
 }