Exemplo n.º 1
0
 public static Common.Models.Documents.DocumentMatter RelateMatter(Common.Models.Documents.Document model,
                                                                   Guid matterId, Common.Models.Account.Users creator)
 {
     return(DocumentMatter.Create(new Common.Models.Documents.DocumentMatter()
     {
         Id = Guid.NewGuid(),
         Document = model,
         Matter = new Common.Models.Matters.Matter()
         {
             Id = matterId
         },
         CreatedBy = creator,
         ModifiedBy = creator,
         Created = DateTime.UtcNow,
         Modified = DateTime.UtcNow
     }, creator));
 }
Exemplo n.º 2
0
 public static Common.Models.Documents.DocumentMatter RelateMatter(Common.Models.Documents.Document model,
                                                                   Guid matterId, Common.Models.Account.Users creator,
                                                                   IDbConnection conn = null, bool closeConnection = true)
 {
     return(DocumentMatter.Create(new Common.Models.Documents.DocumentMatter()
     {
         Id = Guid.NewGuid(),
         Document = model,
         Matter = new Common.Models.Matters.Matter()
         {
             Id = matterId
         },
         CreatedBy = creator,
         ModifiedBy = creator,
         Created = DateTime.UtcNow,
         Modified = DateTime.UtcNow
     }, creator, conn, closeConnection));
 }