Example #1
0
 public DataBase(string connectionString)
 {
     _connectionString = connectionString;
     MRCities          = new MRCities(connectionString);
     MRContributions   = new MRContributions(connectionString);
     MRQuotas          = new MRQuotas(connectionString);
     MRUsers           = new MRUsers(connectionString);
 }
Example #2
0
 public void EditQuota(Quota quota)
 {
     MRQuotas.EditQuota(quota);
 }
Example #3
0
 public void DeleteQuota(int id)
 {
     MRQuotas.DeleteQuota(id);
 }
Example #4
0
 public void AddQuota(Quota quota)
 {
     MRQuotas.AddQuota(quota);
 }
Example #5
0
 public IList <Models.ViewModels.QuotaViewModel> GetAllQuotas(int userId)
 {
     return(MRQuotas.GetAllQuotas(userId));
 }
Example #6
0
 public Quota GetQuota(int id)
 {
     return(MRQuotas.GetQuota(id));
 }