Example #1
0
        public IHttpActionResult GetHomeBlocks()
        {
            var homeBlocks = _service.getHomeBlocks();

            if (homeBlocks != null)
            {
                foreach (var block in homeBlocks)
                {
                    if (block.banner != null && block.banner.action == FlutterPageNavigation.ViewMore)
                    {
                        block.banner.actionValue = "post/" + block.banner.actionValue;
                    }
                }
            }

            return(Ok <List <FlutterBlockProductModel> >(homeBlocks));;
        }
 public IHttpActionResult GetHomeBlocks()
 {
     return(Ok <List <FlutterBlockProductModel> >(_service.getHomeBlocks()));;
 }