public ValueEntity Get(int id)
        {
            ValueEntity valueEntity = null;

            try
            {
                Log.Information("Get Value by Id [{Id}]", id);
                valueEntity = MockValueData.GetValues().Single(a => a.Id == id);
            }
            catch (Exception exception)
            {
                LogException(exception);
            }

            return(valueEntity);
        }
 public void Delete(int id)
 {
     try
     {
         Log.Information("Delete value by Id [{Id}]", id);
         //check to see if value with id exists
         var valueEntity = MockValueData.GetValues().Single(a => a.Id == id);
         if (valueEntity == null)
         {
             throw new InvalidDataException($"Value with id {id} not found.");
         }
     }
     catch (Exception exception)
     {
         LogException(exception);
     }
 }
 public IEnumerable <ValueEntity> Get()
 {
     Log.Information("Get list of values");
     return(MockValueData.GetValues());
 }