Beispiel #1
0
        public ReturnMessageModel OrderIns(OrderModel model)
        {
            ReturnMessageModel result        = new ReturnMessageModel();
            ObjectParameter    returnMessage = new ObjectParameter("ReturnMessage", typeof(String));

            using (TestDBEntities db = new TestDBEntities())
            {
                db.SpOrderIns(model.UserId, model.SupplyName, model.UnitCost, model.UnitPrice, model.Markup, model.Qty, model.TotalPrice, returnMessage);
                result.ReturnMessage = returnMessage.Value.ToString();
                return(result);
            }
        }