public async Task <IActionResult> CookNowAsync(int id) { try { await _service.CookNowAsync(id); } catch (DataObjectNotFoundException e) { return(NotFound(e.Message)); } return(Ok()); }
public async Task <IActionResult> CookNowAsync(int id) { try { await _service.CookNowAsync(id); } catch (DataObjectNotFoundException e) { return(NotFound(e.Message)); } return(Ok()); }