Exemple #1
0
        public ActionResult Index()
        {
            List <FolksViewModel> resultObj = _iFolksService.GetAllFolksDetails();
            var _folksDetails = new FolksViewModel();

            _folksDetails.FolksDetails = resultObj;
            return(View(_folksDetails));
        }
        public JsonResult GetAllFolksDetails()
        {
            List <FolksViewModel> resultObj = _iFolksService.GetAllFolksDetails();

            return(Json(new { data = resultObj }, JsonRequestBehavior.AllowGet));
        }