static void LoadAllTopic(IEpiHackdayRepository epiHackdayRepository) { epiHackdayRepository.GetAll().ToList().ForEach(it => { Console.WriteLine($"Id: {it.Id} -Name: {it.Name} -Author: {it.Author} -Created At: {it.CreatedTime}"); }); }
public override Task <AllHackdayTopic> GetAllTopic(Empty request, ServerCallContext context) { var allHackDayTopic = new AllHackdayTopic(); allHackDayTopic.HackdayTopics.Add(_epiHackdayRepository.GetAll().Select(it => new HackdayTopic { Author = it.Author, CreatedTime = it.CreatedTime.ToString(), Name = it.Name, Office = it.Office })); return(Task.FromResult(allHackDayTopic)); }
public List <HackdayTopic> GetAllHackdayTopic() { return(_epiHackdayRepository.GetAll().ToList()); }
public IEnumerable <HackdayTopic> Get() { return(_epiHackdayRepository.GetAll()); }