示例#1
0
 public PublicController(IPublicService publicService, IRestaurantService restService, IRestaurantAddressService restAddService, IItemService itemService)
 {
     this.restService    = restService;
     this.publicService  = publicService;
     this.restAddService = restAddService;
     this.itemService    = itemService;
     Orders = new List <Order>();
 }
示例#2
0
 public TransporterController(IRestaurantService restService, IInvoiceService invService, IOrderService orderService, IRestaurantAddressService restAddService, ITransporterService transporterService, IUserService userService)
 {
     this.restAddService     = restAddService;
     this.restService        = restService;
     this.invService         = invService;
     this.orderService       = orderService;
     this.transporterService = transporterService;
     this.userService        = userService;
 }
示例#3
0
 public CustomerController(IRestaurantService restService, IRestaurantAddressService restAddService, IOrderService ordService, IInvoiceService invService, ICustomerService custService, IItemService itemService)
 {
     this.Orders         = new List <Order>();
     this.custService    = custService;
     this.restService    = restService;
     this.orderService   = ordService;
     this.restAddService = restAddService;
     this.itemService    = itemService;
     this.invService     = invService;
 }
示例#4
0
 public AdminController(IAdminService adminrepo, ICustomerService custrepo, IRestaurantService restrepo, IUserService userRepo,
                        ITransporterService trepo, IInvoiceService irepo, IOrderService orepo, IItemService itemrepo, IRestaurantAddressService restAddService)
 {
     this.adminrepo      = adminrepo;
     this.custrepo       = custrepo;
     this.restrepo       = restrepo;
     this.userRepo       = userRepo;
     this.trepo          = trepo;
     this.irepo          = irepo;
     this.orepo          = orepo;
     this.itemrepo       = itemrepo;
     this.restAddService = restAddService;
 }