Exemple #1
0
        // GET: AccountMasters/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            AccountMaster accountMaster = accountDataLayer.Find(id);

            if (accountMaster == null)
            {
                return(HttpNotFound());
            }
            return(View(accountMaster));
        }
        public ActionResult AccountDisplay(int?AccountMasterId)
        {
            if (AccountMasterId == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            List <Collection> collection    = CollectionDataLayer.ToList().Where(x => x.AccountMasterId == AccountMasterId).ToList();
            AccountMaster     AccountMaster = AccountDataLayer.Find(AccountMasterId);

            ViewBag.MonthView = AccountDataLayer.GetProcedure("MonthView @AccountMasteId=" + AccountMasterId.ToString());
            if (collection == null)
            {
                return(HttpNotFound());
            }
            return(View(AccountMaster));
        }