public IActionResult Post([FromBody] CreateEventoModel value)
 {
     if (!ModelState.IsValid)
     {
         return(BadRequest(ModelState));
     }
     else
     {
         return(Ok(service.Criar(value)));
     }
 }
Пример #2
0
 public ActionResult Create(CreateStatusModel model)
 {
     if (!ModelState.IsValid)
     {
         return(BadRequest(ModelState));
     }
     else
     {
         return(Ok(service.Criar(model)));
     }
 }