public async Task <ActionResult <Cook> > Post([FromBody] Cook newCook) { try { Profile userInfo = await HttpContext } catch (Exception e) { return(BadRequest(e.Message)); } }
public async Task <ActionResult <Cook> > GetById(int id) { try { Cook found = _cs.GetById(id); return(Ok(found)); } catch (Exception e) { return(BadRequest(e.Message)); } }