public async Task <IActionResult> AddRecipe([FromBody] NewRecipe input)
 {
     return(await SendCommandAsync(new AddRecipe(
                                       PeriodId.From(input.PeriodId),
                                       Amount.From(input.Amount),
                                       Label.From(input.Label),
                                       Pair.From(input.Pair),
                                       RecipeCategory.From(input.Category))));
 }
 public async Task <IActionResult> ChangeRecipe([FromBody] UpdateRecipe input)
 {
     return(await SendCommandAsync(new ChangeRecipe(
                                       PeriodId.From(input.PeriodId),
                                       OperationId.From(input.OperationId),
                                       Amount.From(input.Amount),
                                       Label.From(input.Label),
                                       Pair.From(input.Pair),
                                       RecipeCategory.From(input.Category))));
 }