public IHttpActionResult PutUsersPermissions(int id, UsersPermissions usersPermissions)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            if (id != usersPermissions.Broj)
            {
                return BadRequest();
            }

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

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

            return StatusCode(HttpStatusCode.NoContent);
        }
        public IHttpActionResult PostUsersPermissions(UsersPermissions usersPermissions)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            db.UsersPermissions.Add(usersPermissions);
            db.SaveChanges();

            return CreatedAtRoute("DefaultApi", new { id = usersPermissions.Broj }, usersPermissions);
        }