Beispiel #1
0
 public static JsonResultData <T> SetFail <T>(this JsonResultData <T> result, string message = null)
 {
     result.StatusCode = StatusCodes.FAIL;
     result.Message    = message;
     return(result);
 }
Beispiel #2
0
 public static JsonResultData <T> SetStatusCode <T>(this JsonResultData <T> result, int statusCode)
 {
     result.StatusCode = statusCode;
     return(result);
 }
Beispiel #3
0
 public static JsonResultData <T> SetSuccess <T>(this JsonResultData <T> result)
 {
     result.StatusCode = StatusCodes.SUCCESS;
     return(result);
 }