Пример #1
0
 // GET api/<controller>
 public IEnumerable <PostModel> Get()
 {
     return(PostControllerMapper.Map <IEnumerable <PostDTO>, IEnumerable <PostModel> >(PostLogic.GetAll()));
 }
Пример #2
0
        public ActionResult <ICollection <PostDto> > GetAll()
        {
            var result = _postLogic.GetAll();

            return(Ok(result));
        }
Пример #3
0
        public ActionResult GetAll()
        {
            object a = _postLogic.GetAll();

            return(Ok(new BaseResponse(a)));
        }