private Core.Application.Domain.File CreateFileModel(string sourceFile) { return(new Core.Application.Domain.File { Path = Path.GetFileName(sourceFile), FileSize = DirectoryOperationsHelper.FileLength(sourceFile), Type = FileType.Txt, UploadedBy = new OrganizationRoleUser(OrgRoleUserId), UploadedOn = DateTime.Now }); }