Exemple #1
0
        public async Task <IActionResult> DeleteRecipe([FromBody] DeleteRecipeRequestModel requestModel)
        {
            await _mediator.Send(new DeleteRecipeCommand(requestModel));

            return(Ok());
        }
Exemple #2
0
 public DeleteRecipeCommand(DeleteRecipeRequestModel requestModel)
 {
     Id = requestModel.Id;
 }