public async Task <bool> Add(ImportNotificationComment comment) { context.ImportNotificationComments.Add(comment); await context.SaveChangesAsync(); return(true); }
public async Task <bool> HandleAsync(AddImportNotificationComment message) { ImportNotificationComment comment = new ImportNotificationComment(message.ImportNotificationId, message.UserId, message.Comment, message.ShipmentNumber, message.DateAdded); return(await this.repository.Add(comment)); }