private ProjectFileActivityModel GetProjectFileActivity(ProjectFileActionModel projectFileActionModel, Enumerators.Action action, Enumerators.Status status, DateTime dateTime) { var projectFileActivityModel = new ProjectFileActivityModel(projectFileActionModel) { Action = action, Status = status, Id = Guid.NewGuid().ToString(), Name = projectFileActionModel.Name + ">XLIFF File " + projectFileActionModel.ProjectFileActivityModels.Count, Path = "\\XLIFF File Path\\" + projectFileActionModel.ProjectFileActivityModels.Count, Date = dateTime != DateTime.MinValue ? dateTime : GetRamdomDate(projectFileActionModel.ProjectModel.Created), Details = status.ToString() }; return(projectFileActivityModel); }
private ProjectFileActivity GetProjectFileActivity(ProjectFile projectFile, Enumerators.Action action, Enumerators.Status status, DateTime dateTime) { var projectFileActivity = new ProjectFileActivity { ProjectFileId = projectFile.FileId, Action = action, Status = status, ActivityId = Guid.NewGuid().ToString(), Name = projectFile.Name + ">XLIFF File " + projectFile.ProjectFileActivities.Count, Path = "\\XLIFF File Path\\" + projectFile.ProjectFileActivities.Count, Date = dateTime != DateTime.MinValue ? dateTime : GetRamdomDate(projectFile.Project.Created), Report = status.ToString(), ProjectFile = projectFile }; return(projectFileActivity); }