Exemple #1
0
 public void CreateSliderItem(SliderItem model)
 {
     model.CreatedAt  = DateTime.Now;
     model.ActionText = "#";
     model.EndPoint   = "#";
     _context.SliderItems.Add(model);
     _context.SaveChanges();
 }
        public void UpdateToken(int id, string token)
        {
            Admin admin = _context.Admins.Find(id);

            admin.Token = token;
            _context.SaveChanges();
        }
Exemple #3
0
 public void CreateCity(City model)
 {
     model.CreatedAt = DateTime.Now;
     _context.Cities.Add(model);
     _context.SaveChanges();
 }
Exemple #4
0
 public void CreatePropFloor(PropFloor model)
 {
     model.CreatedAt = DateTime.Now;
     _context.PropFloors.Add(model);
     _context.SaveChanges();
 }
 public void CreatePeopleSay(PeopleSay model)
 {
     model.CreatedAt = DateTime.Now;
     _context.PeopleSays.Add(model);
     _context.SaveChanges();
 }
Exemple #6
0
 public void CreateAboutUs(AboutUs model)
 {
     model.CreatedAt = DateTime.Now;
     _context.AboutUs.Add(model);
     _context.SaveChanges();
 }
 public void CreateCountry(Country model)
 {
     model.CreatedAt = DateTime.Now;
     _context.Countries.Add(model);
     _context.SaveChanges();
 }
Exemple #8
0
 public void CreateTeam(Team model)
 {
     model.CreatedAt = DateTime.Now;
     _context.Teams.Add(model);
     _context.SaveChanges();
 }
 public void CreateBlogReview(BlogReview model)
 {
     model.CreatedAt = DateTime.Now;
     _context.BlogReviews.Add(model);
     _context.SaveChanges();
 }
 public void CreateBlogTagRelate(BlogTagRelate model)
 {
     _context.BlogTagRelates.Add(model);
     _context.SaveChanges();
 }
Exemple #11
0
 public void CreateAgent(Agent model)
 {
     model.CreatedAt = DateTime.Now;
     _context.Agents.Add(model);
     _context.SaveChanges();
 }
Exemple #12
0
 public void CreatePartner(Partner model)
 {
     model.CreatedAt = DateTime.Now;
     _context.Partners.Add(model);
     _context.SaveChanges();
 }
 public void CreatePropFeature(PropFeature model)
 {
     _context.PropFeatures.Add(model);
     _context.SaveChanges();
 }
 public void CreateBlogPhase(BlogPhase model)
 {
     model.CreatedAt = DateTime.Now;
     _context.BlogPhases.Add(model);
     _context.SaveChanges();
 }
Exemple #15
0
 public void CreateProperty(Property model)
 {
     model.CreatedAt = DateTime.Now;
     _context.Properties.Add(model);
     _context.SaveChanges();
 }
Exemple #16
0
 public void CreateAgencyReview(AgencyReview model)
 {
     model.CreatedAt = DateTime.Now;
     _context.AgencyReviews.Add(model);
     _context.SaveChanges();
 }
 public void CreateBlogTag(BlogTag model)
 {
     model.CreatedAt = DateTime.Now;
     _context.BlogTags.Add(model);
     _context.SaveChanges();
 }
Exemple #18
0
 public void CreatePropDetail(PropDetail model)
 {
     _context.PropDetails.Add(model);
     _context.SaveChanges();
 }