Beispiel #1
0
 public IHttpActionResult postWorkshop([FromBody] Workshop workshop)
 {
     if (!Workshop.CreateWorkshop(workshop))
     {
         return(BadRequest("Erro ao criar Workshop!"));
     }
     return(Created("Workshop", workshop));
 }