예제 #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        public async Task <ParticipantModel> GetById(Guid Id)
        {
            var paricipants = (await _participantRepository.GetAllWhere(s => s.Id == Id).ConfigureAwait(false))
                              .Select(AutoMapper.Mapper.Map <ParticipantModel>).FirstOrDefault();

            return(paricipants);
        }