// GET api/<controller> public IEnumerable <PostModel> Get() { return(PostControllerMapper.Map <IEnumerable <PostDTO>, IEnumerable <PostModel> >(PostLogic.GetAll())); }
public ActionResult <ICollection <PostDto> > GetAll() { var result = _postLogic.GetAll(); return(Ok(result)); }
public ActionResult GetAll() { object a = _postLogic.GetAll(); return(Ok(new BaseResponse(a))); }