Ejemplo n.º 1
0
 public GroupModel(Trifolia.DB.Group group, Trifolia.DB.User currentUser)
     : this(group)
 {
     this.IsManager = group.Managers.Count(y => y.UserId == currentUser.Id) > 0;
 }
Ejemplo n.º 2
0
 public SearchUserModel(Trifolia.DB.User user)
 {
     this.Id   = user.Id;
     this.Name = string.Format("{0} {1}", user.FirstName, user.LastName);
 }