public int Insert(Feedback entity) { db.Feedbacks.Add(entity); db.SaveChanges(); return(entity.ID); }
public bool ChangeStatus(int id) { var tags = db.Tags.Find(id); tags.Status = !tags.Status; db.SaveChanges(); return(tags.Status); }
public bool ChangeStatus(int id) { var productTag = db.ProductTags.Find(id); productTag.Status = !productTag.Status; db.SaveChanges(); return(productTag.Status); }
public bool ChangeStatus(int id) { var payment = db.PaymentMethods.Find(id); payment.Status = !payment.Status; db.SaveChanges(); return(payment.Status); }
public bool ChangeStatus(int id) { var store = db.Stores.Find(id); store.Status = !store.Status; db.SaveChanges(); return(store.Status); }
public bool CheckOrder(int id) { var order = db.Orders.Find(id); order.Status = !order.Status; db.SaveChanges(); return(order.Status); }
public bool ChangeStatus(int id) { var newcategory = db.NewCategories.Find(id); newcategory.Status = !newcategory.Status; db.SaveChanges(); return(newcategory.Status); }
public bool ChangeStatus(int id) { var news = db.News.Find(id); news.Status = !news.Status; db.SaveChanges(); return(news.Status); }
public bool ChangeStatus(int id) { var publisher = db.Publishers.Find(id); publisher.Status = !publisher.Status; db.SaveChanges(); return(publisher.Status); }
public bool ChangeStatus(int id) { var productCategory = db.ProductCategories.Find(id); productCategory.Status = !productCategory.Status; db.SaveChanges(); return(productCategory.Status); }
public bool ChangeStatus(int id) { var user = db.Users.Find(id); user.Status = !user.Status; db.SaveChanges(); return(user.Status); }
public bool ChangeStatus(int id) { var onlinePaying = db.OnlinePayings.Find(id); onlinePaying.Status = !onlinePaying.Status; db.SaveChanges(); return(onlinePaying.Status); }
public int Insert(Order order) { db.Orders.Add(order); db.SaveChanges(); return(order.ID); }
/*Phương thức Admin*/ public int Insert(Product entity) { db.Products.Add(entity); db.SaveChanges(); return(entity.ID); }