Beispiel #1
0
 public static ClientCommentEntity Create(IClientComment src)
 {
     return(new ClientCommentEntity
     {
         PartitionKey = GeneratePartitionKey(src.ClientId),
         RowKey = GenerateRowKey(Guid.NewGuid().ToString()),
         ClientId = src.ClientId,
         Comment = src.Comment,
         FullName = src.FullName,
         UserId = src.UserId,
         CreatedAt = src.CreatedAt
     });
 }
Beispiel #2
0
 public Task AddClientCommentAsync(IClientComment data)
 {
     return(_table.InsertOrReplaceAsync(ClientCommentEntity.Create(data)));
 }