public ValueDataContract Update([FromBody] ValueDataContract value)
        {
            using (var context = new Context())
            {
                var valuesRepo = new ValueRepository(context);
                var result = valuesRepo.AddOrUpdateValue(value);

                return result;
            }
        }
        public async Task<ValueDataContract> Read(int id)
        {
            using (var context = new Context())
            {
                var valuesRepo = new ValueRepository(context);
                var result = await valuesRepo.GetValueAsync(id);

                return result;
            }
        }
        public async Task<ValueDataContract> Update([FromBody] ValueDataContract value)
        {
            using (var context = new Context())
            {
                var valuesRepo = new ValueRepository(context);
                var result = await valuesRepo.AddOrUpdateValueAsync(value);

                return result;
            }
        }
        public ValueDataContract Read(int id)
        {
            //TODO: Why are EF references needed in web host?
            using (var context = new Context())
            {
                var valuesRepo = new ValueRepository(context);
                var result = valuesRepo.GetValue(id);

                return result;
            }
        }
 public ValueRepository(Context context)
 {
     _context = context;
 }