Beispiel #1
0
        public EntityQuotation Insert2(int FK_OrdenID, string SubTotal, string IVA, string Total, string Folio, string URL, int typeQuotation, int FK_EmployeeID, DateTime date)
        {
            var             objRepository = new RepositoryQuotation();
            EntityQuotation data          = new EntityQuotation()
            {
                PK_QuotationID = 0,
                FK_OrdenID     = FK_OrdenID,
                SubTotal       = SubTotal,
                IVA            = IVA,
                Total          = Total,
                Folio          = Folio,
                URL            = URL,
                Status         = true,
                CreateDate     = date,
                ModifyDate     = date,
                TypeQuotation  = typeQuotation,
                FK_EmployeeID  = FK_EmployeeID
            };

            data = objRepository.Insert(data);
            return(data);
        }
Beispiel #2
0
 public EntityQuotation Update(EntityQuotation data)
 {
     return(new RepositoryQuotation().Update(data));
 }