Пример #1
0
        public static List <UserBasicDTO> ToBasicDTO(this IEnumerable <ApplicationUser> userList)
        {
            var dtoList = new List <UserBasicDTO>();

            foreach (var user in userList)
            {
                dtoList.Add(UserBasicDTO.ToDTO(user));
            }
            return(dtoList);
        }
Пример #2
0
        public static ApplicationUser FromDTO(UserBasicDTO dto)
        {
            var user = Mapper.Map <ApplicationUser>(dto);

            return(user);
        }