public ActionResult Create([Bind(Include = "RevenueID,Column_A,Column_B,Column_C,Column_D,Column_E,Column_F,Column_G,Column_H,Column_I,Column_J,Column_K,Column_L,Column_M,Column_N,Column_O,Column_P,Column_Q,Column_R,Column_S,Column_T,Column_U,Column_V,Column_W,Column_X,Column_Y,Column_Z,Column_AA,Column_AB,Column_AC")] Revenue revenue) { if (ModelState.IsValid) { db.Revenues.Add(revenue); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(revenue)); }
public ActionResult Create([Bind(Include = "CostID,Column_A,Column_B,Column_C,Column_D,Column_E,Column_F,Column_G,Column_H,Column_I,Column_J,Column_K,Column_L,Column_M,Column_N,Column_O,Column_P,Column_Q,Column_R,Column_S,Column_T,Column_U,Column_V,Column_W,Column_X,Column_Y,Column_Z,Column_AA,Column_AB,Column_AC,Column_AD,Column_AE,Column_AF")] Cost cost) { if (ModelState.IsValid) { db.Costs.Add(cost); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(cost)); }