Ejemplo n.º 1
0
 public override object OnPut(ShoppingCartDTO request)
 {
     try
     {
         if (null != request)
         {
             return(ShoppingCartBiz.AddShoppingCartInfo(request));
         }
         return(ResponseStaticModel.PARAM_ERROR_MODEL);
     }
     catch (Exception ex)
     {
         ResponseStaticModel.SERVER_ERROR_MODEL.ResultEntity = ex.Message;
         return(ResponseStaticModel.SERVER_ERROR_MODEL);
     }
 }
Ejemplo n.º 2
0
 public override object OnGet(ShoppingCartDTO request)
 {
     try
     {
         if (null != request)
         {
             request.PagingInfo = ServiceUtils.GetDefaultPagingInfo(request.PagingInfo);
             return(ShoppingCartBiz.GetShoppingCartInfo(request));
         }
         return(ResponseStaticModel.PARAM_ERROR_MODEL);
     }
     catch (Exception ex)
     {
         ResponseStaticModel.SERVER_ERROR_MODEL.ResultEntity = ex.Message;
         return(ResponseStaticModel.SERVER_ERROR_MODEL);
     }
 }