public async Task <IActionResult> PutTag(int id, TagRequest Tag) { if (Tag == null || id != Tag.Id) { return(BadRequest()); } (int ResultAction, TagResponse UpdatedEntity)result = (-1, null); try { result = await _tagServices.UpdateTagAsync(id, Tag); } catch (DbUpdateConcurrencyException) { if (!TagExists(id)) { return(NotFound()); } else { throw; } } return(Ok(result.UpdatedEntity)); //return NoContent(); }