public async Task <IActionResult> PutSecurity([FromRoute] long id, [FromBody] Security security)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            if (id != security.SecurityId)
            {
                return(BadRequest());
            }

            try
            {
                await _securityData.AddSecurity(security);
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!SecurityExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(NoContent());
        }