public Project(UpdateProjectDTO updateProjectDTO, User owner) { Id = updateProjectDTO.Id; Name = updateProjectDTO.Name; Description = updateProjectDTO.Description; Owner = owner; if (updateProjectDTO.File != null) { Thumbnail = FileReaderHelper.ReadImageFileContent(updateProjectDTO.File); } LastModified = DateTime.Now; StartDate = updateProjectDTO.StartDate; FinishDate = updateProjectDTO.FinishDate; }