/// <summary>
 /// The Details
 /// </summary>
 /// <param name="ExpenseID">The ExpenseID<see cref="int"/></param>
 /// <returns>The <see cref="ActionResult"/></returns>
 public ActionResult Details(int ExpenseID)
 {
     try
     {
         var ExpenseDetails = _IExpense.ExpenseDetailsbyExpenseID(ExpenseID);
         ViewBag.documents = _IDocument.GetListofDocumentByExpenseID(ExpenseID);
         return(PartialView("_Details", ExpenseDetails));
     }
     catch (Exception)
     {
         throw;
     }
 }
示例#2
0
 public ActionResult Details(string id)
 {
     try
     {
         if (string.IsNullOrEmpty(id))
         {
             return(RedirectToAction("Expense", "ShowAllExpense"));
         }
         var data = _IExpense.ExpenseDetailsbyExpenseID(Convert.ToInt32(id));
         ViewBag.documents = _IDocument.GetListofDocumentByExpenseID(Convert.ToInt32(id));
         return(View(data));
     }
     catch (Exception)
     {
         throw;
     }
 }