public async Task <IActionResult> DeleteRecipe([FromBody] DeleteRecipeRequestModel requestModel) { await _mediator.Send(new DeleteRecipeCommand(requestModel)); return(Ok()); }
public DeleteRecipeCommand(DeleteRecipeRequestModel requestModel) { Id = requestModel.Id; }