Пример #1
0
        public static List <AreaViewModel> GetAllProvinces()
        {
            var list = CommonFacade.GetAllProvince();

            return(EntityConverter <List <Area>, List <AreaViewModel> > .Convert(list));
        }
Пример #2
0
        public ActionResult GetAllProvince()
        {
            var data = CommonFacade.GetAllProvince();

            return(Json(data, JsonRequestBehavior.AllowGet));
        }