public async Task <ApiResponse> Get([FromQuery] PrioritiesFilterParams arg) { try { var data = await priorityService.GetAllAsync(arg); return(new ApiResponse(data, HttpStatusCode.OK.ToInt())); } catch (CustomException ex) { throw new ApiException(ex, ex.StatusCode); } catch (Exception ex) { throw new ApiException(ex); } }