Esempio n. 1
0
        /// <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));
        }
Esempio n. 2
0
 public string Get()
 {
     return(_itemRepo.Get());
 }
 public Item Get(int Id)
 {
     return(itemRepo.Get(Id));
 }