public static UserFeedbackEntity Create(IUserFeedbackData src) { var result = new UserFeedbackEntity { PartitionKey = GeneratePartitionKey(), RowKey = GenerateRowKey(), Email = src.Email, Name = src.Name, Feedback = src.Feedback, Created = src.Created }; return(result); }
public async Task SaveAsync(IUserFeedbackData feedbackData) { var newEntity = UserFeedbackEntity.Create(feedbackData); await _userFeedbackTableStorage.InsertAsync(newEntity); }