Exemplo n.º 1
0
        protected override string GetApiSubAddress(Employee entity, HandlerActionType actionType)
        {
            switch (actionType)
            {
            case HandlerActionType.Read:
            case HandlerActionType.Update:
            case HandlerActionType.Delete:
                return($"{ApiControllerName.users}/{entity.Id}");

            case HandlerActionType.ReadPage:
            case HandlerActionType.Create:
                return($"{ApiControllerName.users}");

            default:
                throw new NotImplementedException();
            }
        }
Exemplo n.º 2
0
 public HandlerEventArgs(HandlerActionType ActionType)
 {
     this.ActionType = ActionType;
 }
Exemplo n.º 3
0
 public HandlerEventArgs(HandlerActionType ActionType, string Info) : this(ActionType)
 {
     this.Info = Info;
 }
Exemplo n.º 4
0
 public HandlerEventArgs(HandlerActionType ActionType, string Info = "")
 {
     this.ActionType = ActionType;
     this.Info       = Info;
 }