public bool EditDataItemLength(DashboardItem dashboardItem) { StoredProcedureDataContext dbmlObject = new StoredProcedureDataContext(); dbmlObject.EditDataItemLength(dashboardItem.StartDate, dashboardItem.EndDate, dashboardItem.DashboardID, dashboardItem.ItemID); dbmlObject.SubmitChanges(); return(true); }
public bool ModifyDashboardItem(DashboardItem[] modified) { StoredProcedureDataContext dbml = new StoredProcedureDataContext(); for (int i = 0; i < modified.Length; i++) { dbml.EditDataItemLength(modified[i].StartDate, modified[i].EndDate, modified[i].DashboardID, modified[i].ItemID); } dbml.SubmitChanges(); return(true); }