예제 #1
0
 public User UpdateUserProfile(User user)
 {
     using (var context = new RegistrationEntities())
     {
         decimal?rowcount = context.spUserProfileUpdate(user.UserID, user.Weight, user.ActivityID).SingleOrDefault();
         return(this.SelectUserByID(user.UserID));//refrescar el usuario y regresarlo
     }
 }