Esempio n. 1
0
        public async Task <IActionResult> Get(int pageNumber = 1, int pageSize = 25, string filter = "", string order = "")
        {
            var result = await _stageRepository.GetPaged(pageNumber, pageSize, filter, order);

            if (result.Result == OperationResult.Ok)
            {
                return(StatusCode(200, result.Value));
            }
            return(StatusCode(422, result.Message));
        }