/// <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 }); }
protected bool Equals(BLLAppUserDTO other) { return(Id == other.Id); }