/// <summary> /// obtains a detail of mold /// </summary> /// <param name="id">identifier of mold</param> /// <returns>returns the result to action</returns> public ActionResult Detail(int?id) { MoldRepository objMold = new MoldRepository(SessionCustom); Mold mold = null; XmlDocument xmlDoc = null; if (id != null) { objMold.Entity.MoldId = id; objMold.Load(); mold = objMold.Entity; ViewBag.id = id; xmlDoc = new XmlDocument(); xmlDoc.LoadXml(objMold.Entity.Xmlcontent); } return(this.View(new Molde() { UserPrincipal = CustomUser, Module = this.Module, Mold = mold, ColModul = CustomMemberShipProvider.GetModuls(CustomUser.UserId, SessionCustom, HttpContext), CurrentLanguage = CurrentLanguage, Xmldocument = xmlDoc })); }