Beispiel #1
0
        public ActionResult EditVideoPartial(long id, int?fileId)
        {
            var user = GetCurrentUser();

            var video = id >= 0 ? BaseAuthorServices.GetVideoToken(id, user.userId) : new UserVideoDto
            {
                status = ImportJobsEnums.eFileInterfaceStatus.Init
            };

            if (fileId != null)
            {
                video.fileId = fileId;
            }

            var token = new EditVideoToken
            {
                videoDTO = video
                , mode   = id >= 0 ? CommonEnums.ePageMode.edit : CommonEnums.ePageMode.insert
            };

            return(PartialView("Author/_EditVideo", token));
        }