Ejemplo n.º 1
0
 public IActionResult Create(Component component)
 {
     if (component.Name != null && component.Name == string.Empty)
     {
         return(BadRequest());
     }
     try
     {
         create.Create(component);
         return(NoContent());
     }
     catch (ComponentAlreadyExistException)
     {
         return(BadRequest());
     }
 }