public static Common.Models.Billing.FeeMatter RelateMatter(Common.Models.Billing.Fee model, Guid matterId, Common.Models.Account.Users creator) { return(FeeMatter.Create(new Common.Models.Billing.FeeMatter() { Id = Guid.NewGuid(), Fee = model, Matter = new Common.Models.Matters.Matter() { Id = matterId }, CreatedBy = creator, ModifiedBy = creator, Created = DateTime.UtcNow, Modified = DateTime.UtcNow }, creator)); }
public static Common.Models.Billing.FeeMatter RelateMatter( Common.Models.Billing.Fee model, Guid matterId, Common.Models.Account.Users creator, IDbConnection conn = null, bool closeConnection = true) { return(FeeMatter.Create(new Common.Models.Billing.FeeMatter() { Id = Guid.NewGuid(), Fee = model, Matter = new Common.Models.Matters.Matter() { Id = matterId }, CreatedBy = creator, ModifiedBy = creator, Created = DateTime.UtcNow, Modified = DateTime.UtcNow }, creator, conn, closeConnection)); }