public bool deleteEvent(Guid id) { BiletiEvent biletiEvent = DbContext.BiletiEvents.Where(x => x.Id == id).FirstOrDefault(); if (biletiEvent != null) { DbContext.Remove(biletiEvent); DbContext.SaveChanges(); return(true); } return(false); }
public bool deleteUser(Guid id) { User user = DbContext.Users.Where(x => x.Id == id).FirstOrDefault(); if (user != null) { DbContext.Remove(user); DbContext.SaveChanges(); return(true); } return(false); }
public bool deleteOrganization(Guid id) { Organization organization = DbContext.Organizations.Where(x => x.Id == id).FirstOrDefault(); if (organization != null) { DbContext.Remove(organization); DbContext.SaveChanges(); return(true); } return(false); }