Exemple #1
0
 public void InsertDetail(UXiModel.TblRelacionPedimento _ObjRelPend)
 {
     using (uxisolutionbdEntities context = new uxisolutionbdEntities())
     {
         var query = context.TblRelacionPedimento.Add(_ObjRelPend);
         context.SaveChanges();
     }
 }
        // POST: api/DetalleODC
        public UxiEntities.TblRelacionPedimento Post(UXiModel.TblRelacionPedimento _ObjRelPend)
        {
            UxiEntities.TblRelacionPedimento result = new UxiEntities.TblRelacionPedimento();

            using (uxisolutionbdEntities context = new uxisolutionbdEntities())
            {
                var query = context.TblRelacionPedimento.Add(_ObjRelPend);
                context.SaveChanges();
            }

            return(result);
        }