// GET: AssetsLiabilities/Details/5 public ActionResult Details(int id) { if (id == 0) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } var assetsLiabilities = assetsLiabilitiesB.GetById(id); AssetsLiabilitiesDetails assetsLiabilitiesDetails = new AssetsLiabilitiesDetails(); assetsLiabilitiesDetails.NameCategory = subCategoriesB.GetByIdName((int)assetsLiabilities.IdSubCategory); assetsLiabilitiesDetails.NameSubCategory = subCategoriesB.GetById((int)assetsLiabilities.IdSubCategory).Name; assetsLiabilitiesDetails.NameUser = userB.GetById((int)assetsLiabilities.IdUser).Nickname; assetsLiabilitiesDetails.NameAccount = accountB.GetById((int)assetsLiabilities.IdAccount).Name; assetsLiabilitiesDetails.Name = assetsLiabilities.Name; assetsLiabilitiesDetails.Code = assetsLiabilities.Code; assetsLiabilitiesDetails.CurrentDate = assetsLiabilities.CurrentDate; assetsLiabilitiesDetails.Description = assetsLiabilities.Description; assetsLiabilitiesDetails.Rode = assetsLiabilities.Rode; if (assetsLiabilities.Type == true) { assetsLiabilitiesDetails.Type = "Ingreso"; } else { assetsLiabilitiesDetails.Type = "Egreso"; } return(PartialView(assetsLiabilitiesDetails)); }
// GET: Users/Edit/5 public ActionResult Edit(int id) { if (id == 0) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } return(PartialView(accountB.GetById(id))); }