Beispiel #1
0
        public ReturnMessageModel OrderDel(int Id)
        {
            ReturnMessageModel result        = new ReturnMessageModel();
            ObjectParameter    returnMessage = new ObjectParameter("ReturnMessage", typeof(String));

            using (TestDBEntities db = new TestDBEntities())
            {
                db.SpOrderDel(Id, returnMessage);
                result.ReturnMessage = returnMessage.Value.ToString();
                return(result);
            }
        }