public Boolean IsProfileComplete(int userID) { spIsProfileComplete_Result retVal; using (var context = new RegistrationEntities()) { retVal = context.spIsProfileComplete(userID).FirstOrDefault(); } return(retVal.IsProfileComplete.HasValue ? retVal.IsProfileComplete.Value : false); }