예제 #1
0
 public static ContentResult Error(Context context, ErrorData errorData, params string[] data)
 {
     return(Get(ApiResponses.Error(
                    context: context,
                    errorData: errorData,
                    data: data)));
 }
예제 #2
0
 public static ContentResult Error(Context context, Error.Types type, params string[] data)
 {
     return(Get(ApiResponses.Error(
                    context: context,
                    type: type,
                    data: data)));
 }
예제 #3
0
        public static ContentResult OverTenantStorageSize(Context context, decimal?maxSize)
        {
            var result = Get(ApiResponses.OverTenantStorageSize(
                                 context: context,
                                 maxSize: maxSize));

            return(result);
        }
예제 #4
0
 public static ContentResult Success(long id, string message, int?limitPerDate = null, int?limitRemaining = null)
 {
     if (limitPerDate == 0)
     {
         limitPerDate   = null;
         limitRemaining = null;
     }
     return(Get(ApiResponses.Success(
                    id: id,
                    message: message,
                    limitPerDate: limitPerDate,
                    limitRemaining: limitRemaining)));
 }
예제 #5
0
 public static ContentResult Forbidden(Context context)
 {
     return(Get(ApiResponses.Forbidden(context: context)));
 }
예제 #6
0
 public static ContentResult Unauthorized(Context context)
 {
     return(Get(ApiResponses.Unauthorized(context: context)));
 }
예제 #7
0
 public static ContentResult BadRequest(Context context)
 {
     return(Get(ApiResponses.BadRequest(context: context)));
 }
예제 #8
0
 public static ContentResult Success(long id, string message)
 {
     return(Get(ApiResponses.Success(id, message)));
 }
예제 #9
0
 public static ContentResult Unauthorized()
 {
     return(Get(ApiResponses.Unauthorized()));
 }
예제 #10
0
 public static ContentResult BadRequest()
 {
     return(Get(ApiResponses.BadRequest()));
 }
예제 #11
0
 public static ContentResult Error(Error.Types type, params string[] data)
 {
     return(Get(ApiResponses.Error(type, data)));
 }
예제 #12
0
 public static ContentResult Error(Error.Types type)
 {
     return(Get(ApiResponses.Error(type)));
 }
예제 #13
0
 public static ContentResult NotFound(Context context)
 {
     return(Get(ApiResponses.NotFound(context: context)));
 }