Exemplo n.º 1
0
        public OperationResult Insert(SALES_VIEWEDModel model)
        {
            var entity = new SALES_VIEWED
            {
                ID         = model.ID,
                ProductNo  = model.ProductNo,
                CustomerID = model.CustomerID,
                ContactID  = model.ContactID,
                CreateDate = model.CreateDate,
                ModiDate   = model.ModiDate,
                Creator    = model.Creator,
                Modifier   = model.Modifier,
                RowID      = model.RowID,
            };

            SALES_VIEWEDRepository.Insert(entity);
            return(new OperationResult(OperationResultType.Success, "Added successfully"));
        }