Beispiel #1
0
 public static FSRep MapTo(this FSRepResult repResult)
 {
     return(new FSRep()
     {
         errorNo = "0",
         results = repResult
     });
 }
Beispiel #2
0
        public static FSRep MapTo <T>(this PageDateRep <T> pageDateRep) where T : class, new()
        {
            FSRep rep = new FSRep();
            FSRepResultPage <T> fsPageDateRep = pageDateRep.MapToFSRepResultPage <T>();
            var fsRepResult = new FSRepResult()
            {
                data = fsPageDateRep
            };

            rep = fsRepResult.MapTo();

            return(rep);
        }