protected IActionResult HandleOnDTO <T>(T dto, ReqOn <T> r, IActionResult result = null, ReqOn <IActionResult> onErrorHandling = null) { try { return(r(dto)); } catch (Exception ex) { return(HandleError(ex)); } }
protected IActionResult HandleNoParameter(NoParameterActionResult r, IActionResult result = null, ReqOn <IActionResult> onErrorHandling = null) { try { return(r()); } catch (Exception ex) { return(HandleError(ex)); } }