public bool AddTitle(Title title) { try { context.Titles.Add(title); context.SaveChanges(); return(true); } catch (Exception) { return(false); } }
public bool AddDisk(Disk disk) { try { context.Disks.Add(disk); context.SaveChanges(); return(true); } catch (Exception) { return(false); } }
public bool AddListTitlePreOrder(ListTitlePreOrder listTitlePreOrder) { try { context.ListTitlePreOrders.Add(listTitlePreOrder); context.SaveChanges(); return(true); } catch (Exception) { return(false); } }
public bool AddCustomer(Customer customer) { try { context.Customers.Add(customer); context.SaveChanges(); return(true); } catch (Exception) { return(false); } }
public bool AddListRented(ListRented listRented) { try { context.ListRenteds.Add(listRented); context.SaveChanges(); return(true); } catch (Exception) { return(false); } }
public bool AddDetailPreOrderDAL(DetailPreOrder detailpreorder) { try { context.DetailPreOrders.Add(detailpreorder); context.SaveChanges(); return(true); } catch (Exception) { return(false); } //trigger giam so luong list //trigger cap nhat lai trang thai cua dia }