public void deleteExternalDashboard(int id) { DBHelper._ExternalDashboard dbhelp = new DBHelper._ExternalDashboard(); ExternalDashboard existingExternalDashboard = dbhelp.GetByid(id); dbhelp.Delete(existingExternalDashboard); }
public void updateExternalDashboard(int id, Edit externalDashboard) { DBHelper._ExternalDashboard dbhelp = new DBHelper._ExternalDashboard(); ExternalDashboard existingExternalDashboard = dbhelp.GetByid(id); existingExternalDashboard.Name = externalDashboard.Name; existingExternalDashboard.Order = externalDashboard.Order; existingExternalDashboard.URL = externalDashboard.URL; dbhelp.Update(existingExternalDashboard); }
public Detail GetAllExternalDashboardById(int id) { DBHelper._ExternalDashboard dbhelp = new DBHelper._ExternalDashboard(); ExternalDashboard externalDashboard = dbhelp.GetByid(id); if (externalDashboard != null) { return(new Detail() { Id = externalDashboard.Id, Name = externalDashboard.Name, Order = externalDashboard.Order, URL = externalDashboard.URL }); } else { return(null); } }