public string Delete(ElectricityConsumer obj, IDBContextElectricityConsumer db) { db.ElectricityConsumers.Remove(obj); db.SaveChanges(); return("Deleted successfully"); }
public string Save(ElectricityConsumer obj, IDBContextElectricityConsumer db) { db.ElectricityConsumers.Add(obj); db.SaveChanges(); return("Saved successfully"); }