Exemplo n.º 1
0
 public static MadmenuBestillingVM createMadmenuBestillingVM(IMadmenuRepository madmenuRepository)
 {
     return(new MadmenuBestillingVM()
     {
         Madbestillings = new Madbestillings(),
         MenuselectList = new SelectList(madmenuRepository.Get(), "MenuId", "MenuId"),
         MadMenu = new MadMenu()
     });
 }
 public MadbestillingsController(IMadbestillingRepository madbestillingRepo, IMadmenuRepository madmenuRepo)
 {
     this.madbestillingRepository = madbestillingRepo;
     this.madmenuRepository       = madmenuRepo;
 }