public void Delete(User entity) { ctx.Users.Remove(entity); }
public void Edit(User entity) { ctx.Entry<User>(entity).State = System.Data.EntityState.Modified; }
public void Add(User entity) { ctx.Users.Add(entity); }