Exemplo n.º 1
0
        public ActionResult <AlbumApiModel> Post([FromBody] AlbumApiModel input)
        {
            try
            {
                if (input == null)
                {
                    return(BadRequest());
                }

                return(StatusCode(201, _chinookSupervisor.AddAlbum(input)));
            }
            catch (Exception ex)
            {
                return(StatusCode(500, ex));
            }
        }