public int Update(LiveMedsEntity.Delivery value) { LiveMedsEntity.Delivery dlv = this.context.Deliveries.SingleOrDefault(d => d.DeliveryId == value.DeliveryId); dlv.DeliveryTime = value.DeliveryTime; dlv.Orders = value.Orders; return(this.context.SaveChanges()); }
public int Delete(int id) { LiveMedsEntity.Delivery dlv = this.context.Deliveries.SingleOrDefault(d => d.DeliveryId == id); this.context.Deliveries.Remove(dlv); return(this.context.SaveChanges()); }
public int Update(LiveMedsEntity.Delivery value) { return(this.data.Update(value)); }
public int Insert(LiveMedsEntity.Delivery value) { this.context.Deliveries.Add(value); return(this.context.SaveChanges()); }
public int Insert(LiveMedsEntity.Delivery value) { return(this.data.Insert(value)); }