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(); } }
public HandlerEventArgs(HandlerActionType ActionType) { this.ActionType = ActionType; }
public HandlerEventArgs(HandlerActionType ActionType, string Info) : this(ActionType) { this.Info = Info; }
public HandlerEventArgs(HandlerActionType ActionType, string Info = "") { this.ActionType = ActionType; this.Info = Info; }