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