public async Task <IActionResult> PutModule(Guid id, Module @module) { if (id != @module.Guid) { return(BadRequest()); } try { await _moduleService.PutAsync(module); } catch (DbUpdateConcurrencyException) { if (!await _moduleService.AnyAsync(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }