Esempio n. 1
0
 public ActionResult Edit(VideoAlbumManageModel model)
 {
     ViewBag.SchoolID             = _sModel.SchoolID;
     model.VideoAlbum.IsPublished = false;
     if (model.VideoAlbum.SchoolID == 0)
     {
         model.VideoAlbum.SchoolID = _sModel.SchoolID;
     }
     if (ModelState.IsValid)
     {
         model.VideoAlbum.TransDate = DateTime.Now;
         model.VideoAlbum.UserID    = User.Identity.Name;
         string result = objAlbum.SaveVideoAlbum(model.VideoAlbum);
         if (result.Contains("Success"))
         {
             objSite.AddAuditLog("utblVideoAlbums", "Video Album Updated", IPAddressGetter.GetIPAddress(), User.Identity.Name);
             TempData["ErrMsg"] = result;
             return(RedirectToAction("index", "Videoalbum", new { Area = "Admin" }));
         }
         TempData["ErrMsg"] = result;
     }
     model.Components = objcomp.GetComponentList("");
     model.SchoolList = ObjSch.GetSchoolList("");
     return(View(model));
 }
Esempio n. 2
0
        public ActionResult Add()
        {
            VideoAlbumManageModel model = new VideoAlbumManageModel();

            model.Components = objcomp.GetComponentList("");
            ViewBag.SchoolID = _sModel.SchoolID;
            model.SchoolList = ObjSch.GetSchoolList("");
            return(View(model));
        }
Esempio n. 3
0
        public ActionResult Edit(long id)
        {
            ViewBag.SchoolID = _sModel.SchoolID;
            VideoAlbumManageModel model = new VideoAlbumManageModel();

            model.Components = objcomp.GetComponentList("");
            model.SchoolList = ObjSch.GetSchoolList("");
            model.VideoAlbum = objAlbum.GetVideoAlbumByID(id);
            return(View(model));
        }
        public ActionResult VideoList(long id)
        {
            VideoAlbumManageModel model   = new VideoAlbumManageModel();
            utblVideoAlbum        _vmodel = new utblVideoAlbum();

            model.Videolist  = ObjVideo.GetVideoByAlbumID(id);
            _vmodel          = ObjVideoAlbum.GetVideoAlbumByID(id);
            model.VideoAlbum = _vmodel;
            if (Request.IsAjaxRequest())
            {
                return(PartialView("_pvVideoList", model));
            }
            return(View(model));
        }
Esempio n. 5
0
        // GET: Admin/VideoAlbum
        public ActionResult Index(int PageNo = 1, int PageSize = 10, string searchTerm = "")
        {
            int TotalRecords            = 0;
            VideoAlbumManageModel model = new VideoAlbumManageModel();

            model.VideoAlbumList = objAlbum.GetVideoAlbumPaged(PageNo, PageSize, _sModel.SchoolID, searchTerm, out TotalRecords);
            model.PagingInfo     = new PagingInfo {
                CurrentPage = PageNo, ItemsPerPage = PageSize, TotalItems = TotalRecords
            };
            if (Request.IsAjaxRequest())
            {
                return(PartialView("_pvVideoAlbumList", model));
            }
            return(View(model));
        }
        // GET: Video
        public ActionResult Index(long SCID = 0, int PageNo = 1, int PageSize = 3, string searchTerm = "")
        {
            VideoAlbumManageModel  model   = new VideoAlbumManageModel();
            VideoAlbumGenViewModel _vmodel = new VideoAlbumGenViewModel();

            _vmodel = ObjVideoAlbum.GenVideoAlbumSelectPaged(SCID, PageNo, PageSize, searchTerm);
            model.GenVideoAlbums        = _vmodel;
            model.Components            = ObjComp.GetComponentList("");
            model.GenComponentModelList = ObjComp.GetGenComponentList();//Component List
            if (Request.IsAjaxRequest())
            {
                return(PartialView("_pvVideoAlbumList", model));
            }
            return(View(model));
        }