public bool AddNewPumpstation(PumpStation pumpstation) { try { Parameters parameters = new Parameters(); parameters.Add("@PumpstationName", pumpstation.PumpStationName); parameters.Add("@Description", pumpstation.Description); ExecuteNoneQuery("proc_AddNewPumpstation", parameters); return true; } catch (Exception) { return false; } }
public bool UpdatePumpstation(PumpStation pumpstation) { try { Parameters parameters = new Parameters(); parameters.Add("@PumpstationId", pumpstation.Id); parameters.Add("@PumpstationName", pumpstation.PumpStationName); parameters.Add("@Description", pumpstation.Description); ExecuteNoneQuery("proc_UpdatePumpstation", parameters); return true; } catch (Exception) { throw; } }
public bool UpdatePumpstation(PumpStation pumpStation) { return dataProvider.UpdatePumpstation(pumpStation); }
public bool AddNewPumpstation(PumpStation pumpStation) { return dataProvider.AddNewPumpstation(pumpStation); }