Пример #1
0
        public bool UpdateUser(User instance)
        {
            //User cache = db.Users.Where(p => p.rowId == instance.rowId).FirstOrDefault();
              //if (cache != null)
              //{
              //  cache.avatarPath = instance.avatarPath;
              //  cache.email = instance.email;
              //  db.SaveChanges();
              //  return true;
              //}

              return false;
        }
Пример #2
0
        public bool CreateUser(User instance)
        {
            //if (instance.rowId == 0)
              //{
              //  instance.addedDate = DateTime.Now;
              //  instance.activatedLink = User.GetActivateUrl();
              //  db.Users.Add(instance);
              //  db.SaveChanges();
              //  return true;
              //}

              return false;
        }