public static ProfileDTO ConvertToDto(Profile profile) { return(new ProfileDTO( id: profile.Id, firstName: profile.FirstName, secondName: profile.SecondName, tasks: TaskMapper.ConvertToListDto(profile.Tasks)?.ToList())); }
public static ProfileDTO ConvertToDto(Profile profile) { return(new ProfileDTO( id: profile.Id, firstName: profile.FirstName, secondName: profile.SecondName, tasks: TaskMapper.ConvertToListDto(profile.Tasks)?.ToList())); }