public bool DeleteUser(Guid uuid) { // User user = new User() { ID = uuid }; var user = _dbContext.Find <User>(uuid); _dbContext.Users.Attach(user); _dbContext.Remove <User>(user); return(_dbContext.SaveChanges() > 0 ? true : false); }
public User GetUser(Guid uuid) { return(_dbContext.Find <User>(uuid)); }