public bool BIW { get; set; }
public ActionResult SaveValuesToDB() { TimeLineApplicationDBEntities1 bcontext = new TimeLineApplicationDBEntities1(); var tserver_stations = bcontext.CheckListTables.Select(t => t).ToList(); if (tserver_stations != null && tserver_stations.Count() > 0) { foreach (var data in tserver_stations) { Application_Check model = new Application_Check(); model.BVMS_PMON = data.BIW;// Cant convert bool to string, how can improve this from doing this? //result.Add(model); } } bcontext.SaveChanges(); return RedirectToAction("ReturnList"); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)