Esempio n. 1
0
        public async Task <IActionResult> Edit(int id, [Bind("Name")] Format format)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest());
            }

            Format newFormat = await formatService.UpdateAsync(id, format);

            if (newFormat == null)
            {
                return(NotFound());
            }

            return(new NoContentResult());
        }