public IActionResult Post([FromBody] CatalogModel catalog) { try { //catalog.UserId = CurrentUserId; var newCatalog = _catalogService.Add(catalog.ToDomainModel()); return(CreatedAtAction("Get", new { newCatalog.Id }, newCatalog.ToApiModel())); } catch (Exception ex) { ModelState.AddModelError("AddCatalog", ex.Message); return(BadRequest(ModelState)); } }