public void Update(Receptionist obj) { Receptionist main = context.Receptionists.Where(a => a.Id == obj.Id).FirstOrDefault(); main.Name = obj.Name; context.SaveChanges(); }
public void Delete(Receptionist obj) { Receptionist main = context.Receptionists.Where(a => a.Id == obj.Id).FirstOrDefault(); context.Receptionists.Remove(main); context.SaveChanges(); }
public void Create(Receptionist obj) { context.Receptionists.Add(obj); context.SaveChanges(); }