/// <summary> /// Edit appointment public void EditAppointment(Time_Slot slot) { db.Entry(slot).State = EntityState.Modified; db.SaveChanges(); }
/// <summary> /// Add a new appointment /// <returns>True if address is added successfuly otherwise false</returns> public bool AddNewAppointment(Time_Slot t) { if (t != null) { db.Time_Slot.Add(t); db.SaveChanges(); return(true); } return(false); }