Exemplo n.º 1
0
        public void Handle(EvaluateLeaveCommand command)
        {
            var leave = repo.Get(command.LeaveId);

            leave.EvaluateLeave(command.UserName, command.IsApproved, command.Comment);
            repo.Save(leave);
        }
 public IHttpActionResult Evaluate(EvaluateLeaveCommand command)
 {
     command.UserName = User.Identity.Name;
     CommandSender.Send(command);
     return Content(HttpStatusCode.OK, 0);
 }