示例#1
0
 public ApiResult <List <Proxy> > GetAll(int page, int pageSize)
 {
     try
     {
         var list = proxyService.GetList(page, pageSize);
         return(new ApiResult <List <Proxy> >()
         {
             Status = true, Message = "ok", Result = list
         });
     }
     catch (Exception ex)
     {
         return(new ApiResult <List <Proxy> >()
         {
             Status = false, Message = ex.Message
         });
     }
 }