public async Task <IHttpActionResult> PutUsersFKUs(int id, UsersFKUs usersFKUs)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            if (id != usersFKUs.Id)
            {
                return(BadRequest());
            }

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

            try
            {
                await db.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!UsersFKUsExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(StatusCode(HttpStatusCode.NoContent));
        }
        public async Task <IHttpActionResult> GetUsersFKUs(int id)
        {
            UsersFKUs usersFKUs = await db.USERFKU.FindAsync(id);

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

            return(Ok(usersFKUs));
        }
        public async Task <IHttpActionResult> PostUsersFKUs(UsersFKUs usersFKUs)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            db.USERFKU.Add(usersFKUs);
            await db.SaveChangesAsync();

            return(CreatedAtRoute("DefaultApi", new { id = usersFKUs.Id }, usersFKUs));
        }
        public async Task <IHttpActionResult> DeleteUsersFKUs(int id)
        {
            UsersFKUs usersFKUs = await db.USERFKU.FindAsync(id);

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

            db.USERFKU.Remove(usersFKUs);
            await db.SaveChangesAsync();

            return(Ok(usersFKUs));
        }