Ejemplo n.º 1
0
 public LikelyThief(string userId, string userName, LikelyThiefStatus status, string name, string position, string description) : this()
 {
     AdditionDate = DateTime.UtcNow;
     UserId = userId;
     UserName = userName;
     Status = status;
     Name = name;
     Position = position;
     Description = description;
 }
Ejemplo n.º 2
0
        public virtual ActionResult SwitchLikelyThiefStatus(LikelyThief likelyThief, LikelyThiefStatus status)
        {
            return Handle(() =>
                              {
                                  likelyThief.Status = status;

                                  _documentSession.Store(likelyThief);
                              });
        }