public void UpdateInvoicesClassificationType(GenericLookupType type) { var original = invoiceClassificationRepository.GetById(c => c.Id == type.Id); invoiceClassificationRepository.Update(original, type.AutoMapObject <GenericLookupType, DB.InvoicesClassificationType>()); }
public int CreateInvoiceClassificationType(GenericLookupType type) { var res = invoiceClassificationRepository.Insert(type.AutoMapObject <GenericLookupType, DB.InvoicesClassificationType>()); return(res.Id); }