Example #1
0
        /// <summary>
        /// Show address information
        /// </summary>
        /// <returns></returns>
        public ActionResult Index()
        {
            try
            {
                //get infomation about ward, city, district
                var            wardViewList = _wardService.GetListWardView(isDelete: false);
                List <dynamic> resultReturn = new List <dynamic>();
                foreach (var item in wardViewList)
                {
                    resultReturn.Add(new
                    {
                        data = item,
                        flag = 0
                    });
                }

                return(View(resultReturn));
            }
            catch (Exception)
            {
                return(View("Error"));
            }
        }