public UserProfileViewModel(BUserData user, bool isIn) { User = user; IsInFriendList = isIn; }
public ActionResult Index(BUserData user) { _users.UpdateUserWithModel(user); return View(user); }
public void Delete(BUserData user) { if (user == null) throw new ArgumentNullException(); _repo.Delete(user.Id); _repo.Commit(); }
public void Add(BUserData user) { if (user == null) throw new ArgumentNullException(); _repo.Add(user.ToDAL()); _repo.Commit(); }
public void UpdateUserWithModel(BUserData model) { if (model == null) throw new ArgumentNullException(); _repo.UpdateUser(model.ToDAL()); _repo.Commit(); }
public int GetPrivateChatNewMessagesCount(BUserData user1, BUserData user2) { return _chatRepo.GetPrivateChatNewMessagesCount(user1.Id, user2.Id); }
protected bool Equals(BUserData other) { return Id == other.Id && string.Equals(FirstName, other.FirstName) && string.Equals(LastName, other.LastName) && string.Equals(Email, other.Email); }