Example #1
0
 /// <summary>
 /// Method to add order information
 /// </summary>
 /// <param name="order">order</param>
 public int AddOrder(OrderInfo order)
 {
     try {
         return(orderDal.AddOrders(new List <OrderInfo>()
         {
             order
         }));
     } catch {
         throw;
     }
 }
Example #2
0
        public HttpResponseMessage insertOrder(OrderBO order)
        {
            int ordrs = iorder.AddOrders(order);

            return(Request.CreateResponse(HttpStatusCode.OK, "saved successfully"));
        }