protected User SetUserModel(UserModel model, User user) { //User user = UserDao.Load(userId); model.UserId = user.Id; model.Code = user.Code; model.Comment = user.Comment; model.DateAccepted = user.DateAccept; model.DateRelease = user.DateRelease; model.FullName = user.FullName; return user; }
protected User SetUserModel(UserModel model,int userId) { User user = UserDao.Load(userId); SetUserModel(model, user); return user; }