Esempio n. 1
0
        public IStatusGeneric <ActivityDocument> CreateActivityDocument(string description, string filePath, long acId, long?punchId)
        {
            var status = ActivityDocument.CreateActivityDocument(description, filePath, acId, punchId);

            this.ActivityDocuments.Add(status.Result);
            return(status);
        }
Esempio n. 2
0
        public static IStatusGeneric <ActivityDocument> CreateActivityDocument(string description, string filePath, long acId, long?punchId)
        {
            var pstatus = new StatusGenericHandler <ActivityDocument>();
            var acDoc   = new ActivityDocument
            {
                ActivityId  = acId,
                PunchId     = punchId,
                Description = description,
                FilePath    = filePath
            };

            pstatus.Result = acDoc;
            return(pstatus);
        }