예제 #1
0
 public EditInfosController()
 {
     context.Database.CreateIfNotExists();
     PersonService     = new PersonService(new Data.Repository.PersonRepository(context));
     HeroBannerService = new HeroBannerService(new Data.Repository.HeroBannerRepository(context));
     GroomBrideService = new GroomBrideService(new Data.Repository.GroomBrideRepository(context));
     FooterService     = new FooterService(new Data.Repository.FooterRepository(context));
     CoupleService     = new CoupleService(new Data.Repository.CoupleRepository(context));
 }
예제 #2
0
 public void HeroBannerGroomBride(HeroBannerModel model)
 {
     model.Page = Data.Models.EnumPage.GroomBride;
     HeroBannerService.Save(model);
 }
예제 #3
0
 public void HeroBannerHome(HeroBannerModel model)
 {
     model.Page = Data.Models.EnumPage.Home;
     HeroBannerService.Save(model);
 }
예제 #4
0
 public HeroBannerController()
 {
     service = new HeroBannerService(new Data.Repository.HeroBannerRepository(context));
 }