Esempio n. 1
0
        public FileLink RejectFileConfirm(Guid id, string note)
        {
            var model = AppContext.FileLinks.FirstOrDefault(e => e.Id == id);

            if (model == null)
            {
                return(null);
            }
            var status =
                new ReadOnlyDictionaryRepository().GetDicFileLinkStatusByCode(CodeConstManager.STATUS_FILE_CODE_FOR_REVISION);

            model.StatusId = status.Id;
            model.Comment  = note;
            AppContext.SaveChanges();
            model.DIC_FileLinkStatus = status;
            return(model);
        }
Esempio n. 2
0
        public FileLink AcceptFileConfirm(Guid id)
        {
            var model = AppContext.FileLinks.FirstOrDefault(e => e.Id == id);

            if (model == null)
            {
                return(null);
            }
            var status =
                new ReadOnlyDictionaryRepository().GetDicFileLinkStatusByCode(CodeConstManager.STATUS_FILE_CODE_ACCEPTED);

            model.StatusId = status.Id;
            model.Comment  = "";
            AppContext.SaveChanges();
            model.DIC_FileLinkStatus = status;
            return(model);
        }