//////////////////////////////////////////////////////////////////////////////////////////////////////////////// //************************************************************************************************************** // * // GETTERS & SETTERS * // * //************************************************************************************************************** //////////////////////////////////////////////////////////////////////////////////////////////////////////////// /// <summary> // Sets reference to the current level to play based on the current level enumerator. /// </summary> /// <returns> // void /// </returns> public void SetLevel(int level) { _CurrentLevel = (ELevels)level; }
/// <summary> /// Get List Consultants By Level /// </summary> /// <param name="level"></param> /// <returns></returns> public async Task <IHttpActionResult> GetListByLevels(ELevels level) { List <Consultant> consultants = await consultantRepository.FindByCondition(item => item.Level == level).ToListAsync(); return(Ok(consultants.Select(item => item.ConsultantToConsultantReturnDto()))); }