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)); }
public ActionResult Month() { var data = accountDataLayer.GetProcedure("MonthView"); return(View(data)); }