예제 #1
0
 public Object Test1()
 {
     try
     {
         var model = _testServices.List();
         return(model);
     }
     catch (Exception ex)
     {
         return(ex.ToString());
     }
 }
예제 #2
0
        public IHttpActionResult List()
        {
            var result = _TestService.List();

            return(ApiHelper.ReturnHttpAction(result, this));
        }