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(); }
public void CreateCity(City model) { model.CreatedAt = DateTime.Now; _context.Cities.Add(model); _context.SaveChanges(); }
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(); }
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(); }
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(); }
public void CreateAgent(Agent model) { model.CreatedAt = DateTime.Now; _context.Agents.Add(model); _context.SaveChanges(); }
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(); }
public void CreateProperty(Property model) { model.CreatedAt = DateTime.Now; _context.Properties.Add(model); _context.SaveChanges(); }
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(); }
public void CreatePropDetail(PropDetail model) { _context.PropDetails.Add(model); _context.SaveChanges(); }