public bool DeleteUser(string id) { try { User user = this.GetUserById(id); _ctx.Remove(user); return(true); } catch (DbUpdateException) { return(false); throw; } }