示例#1
0
 public IHttpActionResult AddNewCoupons([FromBody] IEnumerable <Coupon> coupons)
 {
     try
     {
         couponService.AddCoupons(coupons);
     }
     catch (Exception e)
     {
         return(InternalServerError(e.InnerException));
     }
     return(Ok());
 }