Esempio n. 1
0
        public BaseResponse UpdateUserLogin(UpdateUserLoginRequest request)
        {
            var res = new BaseResponse();

            using (var db = DbContext)
            {
                var entityDb = new Entity.BeUser { Id = request.UserId, LastLoginDate = DateTime.UtcNow };
                db.BeUsers.Attach(entityDb);
                db.Entry(entityDb).Property(o => o.LastLoginDate).IsModified = true;

                res.Success = db.SaveChanges() > 0;
            }

            return res;
        }
Esempio n. 2
0
 public BaseResponse UpdateUserLogin(UpdateUserLoginRequest request)
 {
     return Execute(_repository, r => r.UpdateUserLogin(request));
 }