public IActionResult PutVenues(string ClientName, [FromBody] Clients client) { var getClients = _repository.GetClients(); var certainClient = getClients.FirstOrDefault <Clients>(x => x.ClientName == ClientName); if (certainClient != null) { Clients oldC = new Clients() { Location = client.Location }; oldC.ClientName = certainClient.ClientName; oldC.ClientPass = certainClient.ClientPass; _repository.ModifyClients(oldC); return(NoContent()); } return(NotFound()); }