public virtual async Task<SalutationCollectionModel> Get()
 {
     var salutations = SalutationHelper.GetSalutations();
     var collection = new SalutationCollectionModel(salutations);
     collection.Links.Add(new Link() { Rel = "self", Href = this.Url.Route(SalutationsRouteName, new { }) });
     return await Task.FromResult(collection);
 }
Пример #2
0
        public virtual async Task <SalutationCollectionModel> Get()
        {
            var salutations = SalutationHelper.GetSalutations();
            var collection  = new SalutationCollectionModel(salutations);

            collection.Links.Add(new Link()
            {
                Rel = "self", Href = this.Url.Route(SalutationsRouteName, new { })
            });
            return(await Task.FromResult(collection));
        }