public HttpResponseMessage Get(string id) { Guid gId; if(Guid.TryParse(id, out gId)) { return Request.CreateResponse(HttpStatusCode.NotFound); } else { var vm = new BlogRollVM(); var result = vm.BlogRolls.Find(b => b.Id == gId); return Request.CreateResponse(HttpStatusCode.OK, result); } }
public IEnumerable<BlogRollItem> Get() { var vm = new BlogRollVM(); return vm.BlogRolls; }