Esempio n. 1
0
        //U
        public ResultMessage Insert(Supplier toInsert, out int newID)
        {
            var result  = _da.Insert(toInsert, out newID) > 0;
            var message = result ? "" : "err";

            return(new ResultMessage(result, message));
        }
Esempio n. 2
0
        public decimal Insert(SupplierInfo supplier)
        {
            decimal ck = -1;

            try
            {
                SupplierDA _da = new SupplierDA();
                ck = _da.Insert(supplier);
            }
            catch (Exception ex)
            {
                NaviCommon.Common.log.Error(ex.ToString());
            }
            return(ck);
        }