// PUT api/Citizens/5
        public IHttpActionResult PutSecurity_Citizens(Guid id, Security_Citizens security_citizens)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            if (id != security_citizens.GUID)
            {
                return(BadRequest());
            }

            db.Entry(security_citizens).State = EntityState.Modified;

            try
            {
                db.SaveChanges();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!Security_CitizensExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(StatusCode(HttpStatusCode.NoContent));
        }
        public IHttpActionResult PostSecurity_Citizens(Security_Citizens security_citizens)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            db.Security_Citizens.Add(security_citizens);

            try
            {
                db.SaveChanges();
            }
            catch (DbUpdateException)
            {
                if (Security_CitizensExists(security_citizens.GUID))
                {
                    return(Conflict());
                }
                else
                {
                    throw;
                }
            }

            return(CreatedAtRoute("DefaultApi", new { id = security_citizens.GUID }, security_citizens));
        }
        public IHttpActionResult DeleteSecurity_Citizens(Guid id)
        {
            Security_Citizens security_citizens = db.Security_Citizens.Find(id);

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

            db.Security_Citizens.Remove(security_citizens);
            db.SaveChanges();

            return(Ok(security_citizens));
        }