Example #1
0
        /// <summary>
        /// Maps id, name
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        /// <exception cref="NullReferenceException"></exception>
        public static AppUserDTO FromBLL(BLLAppUserDTO dto)
        {
            if (dto == null)
            {
                throw new NullReferenceException("Can't map, BLLAppUserDTO is null");
            }

            return(new AppUserDTO()
            {
                Id = dto.Id,
                Name = dto.Nickname
            });
        }
Example #2
0
 protected bool Equals(BLLAppUserDTO other)
 {
     return(Id == other.Id);
 }