コード例 #1
0
        public List <ClaimDTO> GetByUser(string username)
        {
            var authorizations    = _claimRepository.GetByUser(username);
            var authorizationsDTO = new List <ClaimDTO>();

            authorizations.ForEach((autho) =>
            {
                authorizationsDTO.Add(Mapper.Map <ClaimDTO>(autho));
            });

            return(authorizationsDTO);
        }