// GET api/values /// <summary> /// Get the values /// </summary> /// <remarks>The endpoint returns a Json representation of the object collection</remarks> public async Task <IEnumerable <Value> > Get() { IEnumerable <Value> values = null;; try { values = (IEnumerable <Value>) await repository.GetAllValuesAsync(); return(values); } catch (Exception ex) { Console.WriteLine(ex.Message); return(values); } }