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); }
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)); }