public void AddWallToDB(MasonryCalculator MC) { ProjectMunitEntities3 pmu = new ProjectMunitEntities3(); WallInformation walli = new WallInformation(); walli.WallHeight = MC.WallHeight.ToString(); walli.Walllength = MC.WallLength.ToString(); walli.BlockType = MC.BlockType; pmu.WallInformations.Add(walli); pmu.SaveChanges(); }
public ActionResult DBInfor() { var entities = new ProjectMunitEntities3(); return View(entities.WallInformations.ToList()); }