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