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 }); }
public Task AddClientCommentAsync(IClientComment data) { return(_table.InsertOrReplaceAsync(ClientCommentEntity.Create(data))); }