Пример #1
0
        public async Task <ActionResult <IList <MailListModel> > > GetList([FromBody] FiltroModel filtroModel)
        {
            var operationResult = await _mailListModule.GetList(filtroModel);

            if (operationResult.Result != OperationResult.Ok)
            {
                return(BadRequest(operationResult));
            }

            return(Ok(operationResult));
        }
Пример #2
0
        private async Task <ResultModel <IList <MailListModel> > > GetMailLists(string partialName)
        {
            if (partialName != null)
            {
                partialName.Trim();
            }

            var filtroModel = new FiltroModel(new List <int>(), countDefault, null, null, partialName, null, null);

            var mailLists = await _mailListModule.GetList(filtroModel);

            return(mailLists);
        }