public JsonMessage<List<Developer>> GetPage(int page)
        {
            JsonMessage<List<Developer>> jsonReturn = new JsonMessage<List<Developer>>();
            try
            {
                DeveloperService devService = new DeveloperService();
                jsonReturn.BusinessObject = devService.page(page);
                jsonReturn.Success = "OK";
            }
            catch (Exception e)
            {
                jsonReturn.Success = "Error" + e.Message;
            }

            return jsonReturn;
        }
Exemple #2
0
 public void TestMethod1()
 {
     DeveloperService devService = new DeveloperService();
     devService.page(10, 20);
 }