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)); }
public void HeroBannerGroomBride(HeroBannerModel model) { model.Page = Data.Models.EnumPage.GroomBride; HeroBannerService.Save(model); }
public void HeroBannerHome(HeroBannerModel model) { model.Page = Data.Models.EnumPage.Home; HeroBannerService.Save(model); }
public HeroBannerController() { service = new HeroBannerService(new Data.Repository.HeroBannerRepository(context)); }