public async Task <bool> DeleteUser(string id) { var delete = await dataContext.Users.FindAsync(id); await roleServices.DeleteUserFromRole("Regular User", delete.Id); dataContext.Users.Remove(delete); return(await dataContext.SaveChangesAsync() == 1); }