コード例 #1
0
 public static void CreateResponse(this DataResponse respose, DataResponseStatus status, int Id = 0)
 {
     respose.Status  = status;
     respose.Message = status.ToString();
     respose.Id      = Id;
 }
コード例 #2
0
 public static void CreateResponse <T>(this DataResponse <T> respose, T model, DataResponseStatus status)
 {
     respose.Status  = status;
     respose.Message = status.ToString();
     respose.Model   = model;
 }