Exemplo n.º 1
0
        public ActionResult <List <InformationModel> > Get(string text, bool isCurrentUser, int pageStartIndex)
        {
            List <Information>      informations    = _informationService.All(text, isCurrentUser, pageStartIndex, PageSize).ToList();
            List <InformationModel> informationList = _mapper.Map <List <Information>, List <InformationModel> >(informations);

            return(informationList.Count() > 0 ? informationList : null);
        }