public bool IsUsernameExist(string username) { using (var db = new UserContext()) { return(db.CheckUsername(username)); } }