public IStatusGeneric UpdateMDRDocument(string title, string description,
                                                int WorkPackageId, string code, MDRDocumentType type)
        {
            var pstatus = new StatusGenericHandler();

            this.Title         = title;
            this.Description   = description;
            this.WorkPackageId = WorkPackageId;
            this.Code          = code;
            this.Type          = type;

            return(pstatus);
        }
        public static IStatusGeneric <MDRDocument> CreateMDRDocument(string title,
                                                                     string description, int WorkPackageId, string code, int commentStatusId, Guid projectId, MDRDocumentType type)
        {
            var pstatus = new StatusGenericHandler <MDRDocument>();

            var newMDRDoc = new MDRDocument
            {
                Description   = description,
                WorkPackageId = WorkPackageId,
                Title         = title,
                Code          = code,
                ProjectId     = projectId,
                Type          = type
            };

            pstatus.Result = newMDRDoc;
            return(pstatus);
        }
        public MDRDocument(string title, string description, int workPackageId, string code, Guid projectId, MDRDocumentType type)
        {
            this.Title         = title;
            this.Description   = description;
            this.WorkPackageId = workPackageId;
            this.Code          = code;
            this.ProjectId     = projectId;
            this.Type          = type;

            this.MDRDocumentComments = new List <MDRDocumentComment>();
            this.MDRStatusHistoryies = new List <MDRStatusHistory>();
        }