Пример #1
0
 /// <summary>
 /// Gets the code camps.
 /// </summary>
 /// <param name="includeSessions">if set to <c>true</c> [include sessions].</param>
 /// <returns>list of code camp models</returns>
 public async Task <IEnumerable <CodeCampModel> > GetCodeCamps(bool includeSessions)
 {
     return(_mapper.Map <IEnumerable <CodeCampModel> >(await _repository.GetAllAsync(includeSessions)));
 }