示例#1
0
        public void UpdateInvoicesClassificationType(GenericLookupType type)
        {
            var original = invoiceClassificationRepository.GetById(c => c.Id == type.Id);

            invoiceClassificationRepository.Update(original, type.AutoMapObject <GenericLookupType, DB.InvoicesClassificationType>());
        }
示例#2
0
        public int CreateInvoiceClassificationType(GenericLookupType type)
        {
            var res = invoiceClassificationRepository.Insert(type.AutoMapObject <GenericLookupType, DB.InvoicesClassificationType>());

            return(res.Id);
        }