public static ScriptDetails FromDLModel(Script s) { if (s == null) { return(null); } return(new ScriptDetails { ID = s.ID, ScriptURL = s.ScriptURL, Scriptwriter = UserMinimal.FromDLModel(s.ScriptWriter) }); }
public static FileDetails FromDLModel(File f) { if (f == null) { return(null); } return(new FileDetails { ID = f.ID, FileDescription = f.FileDescription, FileName = f.FileName, FileURL = f.FileURL, ParsedID = f.ParsedID, Uploader = UserMinimal.FromDLModel(f.Uploader) }); }
public static PilotDetails FromDLModel(Pilot p) { if (p == null) { return(null); } return(new PilotDetails { ID = p.ID, PilotName = p.PilotName, PilotDescription = p.PilotDescription, Producer = UserMinimal.FromDLModel(p.Producer), Files = p.Files.Select(f => FileDetails.FromDLModel(f)).ToList(), Scenes = p.Scenes.Select(s => SceneDetails.FromDLModel(s)).ToList(), Script = ScriptDetails.FromDLModel(p.Script) }); }