public ActionResult Edit(int type, int id, int tagId, int pageNumber) { var c = _podcastService.FindByIdAsync(id).Result; if (c.TypeId == 1) { ViewBag.BreadCrump = "ویرایش آلبوم"; } var m = new PodcastViewModel { Title = c.Title, TypeId = c.TypeId, Thumbnail = c.Thumbnail, Pic = c.Pic, Id = c.Id, IsPublic = c.IsPublish, Description = c.Description, Tags = string.Join(",", c.PodcastTags.Where(d => d.Type == "tag").Select(d => d.TagId)), Category = string.Join(",", c.PodcastTags.Where(d => d.Type == "podcastcat").Select(d => d.TagId)), Auther = string.Join(",", c.PodcastTags.Where(d => d.Type == "auther").Select(d => d.TagId)), Editor = string.Join(",", c.PodcastTags.Where(d => d.Type == "editor").Select(d => d.TagId)), Speaker = string.Join(",", c.PodcastTags.Where(d => d.Type == "speaker").Select(d => d.TagId)), RegisterDate = c.PublishDateTime.ToShortPersianDateString(), PodcastTags = c.PodcastTags, RegisterTime = c.PublishDateTime != null?c.PublishDateTime.Value.ToString("h:mm:tt") : "", ContentText = c.ContentText != null?c.ContentText.Replace("../../content/files/editor/", "/content/files/editor/") .Replace("../content/files/editor/", "/content/files/editor/") .Replace("..//content/files/editor/", "/content/files/editor/") : "" }; return(View(m)); }