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