public bool Update(string password, string city, string state, ref string response, string imageName, string imageSize, byte[] imageContent) { using (WorkWithMeDataContext oDC = new WorkWithMeDataContext()) { if (oDC.spUpdateUserWithImage(Id, Username, password, FirstName, MiddleInitial, LastName, Zip, Address, city, state, IsAddressPrivate, Email, imageName, imageSize, imageContent, ref response) == 0) { return(false); } else { tblUser user = (from u in oDC.tblUsers where u.Id == Id select u).FirstOrDefault(); UserImgId = user.UserImgId; return(true); } } }