Пример #1
0
 public Structure AuthorizeError()
 {
     Structure response = new Structure();
     response.error = "Unauthorized";
     response.data = null;
     return response;
 }
Пример #2
0
 public Structure Error(dynamic error)
 {
     Structure response = new Structure();
     response.error = error;
     response.data = null;
     return response;
 }
Пример #3
0
 public Structure ModelError()
 {
     Structure response = new Structure();
     response.error = "Model is not valid";
     response.data = null;
     return response;
 }
Пример #4
0
 public Structure Data(dynamic data)
 {
     Structure response = new Structure();
     response.error = false;
     response.data = data;
     return response;
 }