public List <Rant> GetRants() { List <Rant> rants = _readWriteRepository.GetAll() .Include(r => r.Reactions) .ToList(); return(rants); }
public HttpResponseMessage Get(string password) { if (password != ConfidentialData.AdminPassword) { return(Request.CreateResponse(HttpStatusCode.Forbidden)); } var results = _logRepository.GetAll().OrderByDescending(l => l.CreatedAt).Select(l => new Models.EventLog { Id = l.Id, Action = l.Action, CreatedAt = l.CreatedAt, UserId = l.UserId }); return(Request.CreateResponse(HttpStatusCode.OK, results)); }
public IQueryable <Production> Get() { return(_productionRepository.GetAll()); }