예제 #1
0
 public JsonResult GetSubCategoryList(int categoryId)
 {
     try
     {
         List <etblPhotoSubCategoryM> subCategoryList = null;
         if (Session["PropId"] != null)
         {
             var properyId = Convert.ToInt32(Session["PropId"].ToString());
             subCategoryList = BL_tblPhotoCategoryM.GetSubcategoriesFromCategoryId(categoryId, properyId);
         }
         var jsonResult = Json(subCategoryList, JsonRequestBehavior.AllowGet);
         return(jsonResult);
     }
     catch (Exception)
     {
         var jsonResult = Json(null, JsonRequestBehavior.AllowGet);
         return(jsonResult);
     }
 }
예제 #2
0
        public ActionResult UnmappedPropertyImages()
        {
            try
            {
                var propertyId = Convert.ToInt32(Session["PropId"].ToString());

                ViewBag.categoryList = BL_tblPhotoCategoryM.GetAllRecords();

                var recordList = BL_tblPropertyPhotoMap.GetUnMappedProperty(propertyId);

                PropertyImageMapViewModel viewModel = new PropertyImageMapViewModel();
                viewModel.UnMappedEtblPropetyPhotoList = recordList;

                return(PartialView(viewModel));
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }