public IActionResult DeleteVideo(int id) { string userName = GetCurrentUserName(User.GetUserId()); string videoName = videosService.GetVideoName(id); string content = string.Format("{0} requested deletion of video: {1}", userName, videoName); logsService.AddNewLog("Delete", content); videosService.DeleteVideo(id); return(RedirectToAction("ViewVideos")); }