Esempio n. 1
0
 public override IActionResult Post([FromBody] CreateCollectionDto value)
 {
     try
     {
         _service.CheckIfCollectionNameExists(value);
         var dto = _service.Create(value);
         return(Ok(dto));
     }
     catch (AppException ex)
     {
         return(BadRequest(ex.Message));
     }
 }