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