public static void AddDataSystem(SystemDataView data) { ApplicationDbContext db = new ApplicationDbContext(); SystemData a = ModelConverter.ViewToSystemDataModel(data); db.SystemDatas.Add(a); db.SaveChanges(); }
public static void AddDataSystem(SystemDataView data) { ApplicationDbContext db = new ApplicationDbContext(); SystemData a = ModelConverter.ViewToSystemDataModel(data); db.SystemDatas.Add(a); db.SaveChanges(); }