예제 #1
0
        public ActionResult GetAttachments(int?id)
        {
            var model = new List <AttachmentObject>();

            if (id.HasValue && MainObject.CheckUserHasReadAccess(id.Value))
            {
                model = AttachmentObject.GetAttachments(id.Value);
            }

            return(PartialView("Partials/_attachmentList", model));
        }
예제 #2
0
 public AttachmentModel(int mainId)
 {
     MainId      = mainId;
     Attachments = AttachmentObject.GetAttachments(MainId);
 }
예제 #3
0
 public AdminAttachmentModel(int?mainId)
 {
     MainId      = mainId;
     Attachments = AttachmentObject.GetAttachments(MainId ?? 0, true);
 }