public static VideoLink Map(VideoLinkModel objModel) { return(new VideoLink { Id = objModel.Id, VideoLinkUrl = objModel.VideoLinkUrl, SectionId = objModel.SectionId, CreatedDate = objModel.CreatedDate }); }
// // GET: /CPFront/ public ActionResult Front() { ViewBag.CurrentMainTab = "Front"; ViewBag.CurrentSubTab = "Profile"; ViewBag.CurrentSuperSubTab = "Name"; VideoLinkModel objVideoLink = new VideoLinkModel(); FrontModel objFront = new FrontModel(); objFront.VideoLinkModel = objVideoLink; List <SectionModel> objSection = new List <SectionModel>(); objSection = SectionMap.Map(_repoSection.GetList(x => x.LanguageId == 1).ToList()); objFront.SectionListModel = objSection; return(View("Front", objFront)); }