Exemplo n.º 1
0
 public void OnGetAsync(int?id, int?pageSize)
 {
     try
     {
         if (id != null && id > 0)
         {
             PlanModel.PaginationModel.PageNumber = id.Value;
         }
         if (pageSize != null && pageSize > 0)
         {
             PlanModel.PaginationModel.PageSize = pageSize.Value;
         }
         PlanModel = restSrvc.GetListOfPlans(PlanModel);
     }
     catch (System.Exception)
     {
         throw;
     }
 }