/// <summary> /// Gets All available items /// </summary> /// <returns></returns> public IHttpActionResult Get() { var items = _itemRepo.Get().ToList(); if (Request != null) { items.ForEach(item => item.Uri = Request.RequestUri.ToString() + "/" + item.Id); } return(Ok(items)); }
public string Get() { return(_itemRepo.Get()); }
public Item Get(int Id) { return(itemRepo.Get(Id)); }