示例#1
0
 public ActionResult BlockVideo(long?id)
 {
     if (UsersHelper.LoggedInUserUsername(Session) == null)
     {
         return(null);
     }
     if (_videosRepository.GetVideoById(id) == null)
     {
         return(null);
     }
     _videosRepository.BlockVideo(id);
     ViewBag.Message = "Video has been successfully blocked.";
     return(PartialView("MessageModal"));
 }