public int InsertConfigApi(ConfigApi model)
 {
     try
     {
         return(DALConfigApi.InsertConfigApi(model));
     }
     catch (Exception ex)
     {
         var exception = new DownloadAppException(1, "InsertConfigApi", ex);
         Logger.Log(Level.Error, exception, "InsertConfigApi");
         throw ex;
     }
 }
 public bool DeleteConfigApi(int id)
 {
     try
     {
         return(DALConfigApi.DeleteConfigApi(id));
     }
     catch (Exception ex)
     {
         var exception = new DownloadAppException(1, "DeleteConfigApi", ex);
         Logger.Log(Level.Error, exception, "DeleteConfigApi");
         throw ex;
     }
 }
 public bool InsertConfigCoupon(ConfigCoupon model)
 {
     return(DALConfigApi.InsertConfigCoupon(conn, model));
 }
 public bool UpdateConfigCoupon(ConfigCoupon model)
 {
     return(DALConfigApi.UpdateConfigCoupon(conn, model));
 }
 public ConfigCoupon GetConfigCoupon()
 {
     return(DALConfigApi.GetConfigCoupon(conn));
 }