示例#1
0
        public List <Attachment> Attachment_List(Attachment model)
        {
            ICache cache = CacheFactory.Create();

            if (!cache.Exists(string.Empty, "Attachment" + model.Source))
            {
                List <Attachment> attachmentlist = AttachmentDAL.Attachment_List(model);
                cache.Set(string.Empty, "Attachment" + model.Source, attachmentlist);
                return(attachmentlist);
            }
            else
            {
                return(cache.Get <List <Attachment> >(string.Empty, "Attachment" + model.Source));
            }
        }
示例#2
0
        public List <CommentsBE> GetJobCommentsWithAttachmentsBAL(CommentsBE commentBE)
        {
            List <CommentsBE> CommentBEList = new List <CommentsBE>();

            try
            {
                AttachmentDAL attachmentDAL = new AttachmentDAL();

                CommentBEList = attachmentDAL.GetJobCommentsWithAttachmentsDAL(commentBE);
                attachmentDAL = null;
            }
            catch (Exception ex)
            {
            }
            finally { }
            return(CommentBEList);
        }
示例#3
0
        public List <AttachmentsBE> GetJobAttachmentsBAL(AttachmentsBE attachmentBE)
        {
            List <AttachmentsBE> AttachmentBEList = new List <AttachmentsBE>();

            try
            {
                AttachmentDAL attachmentDAL = new AttachmentDAL();

                AttachmentBEList = attachmentDAL.GetJobAttachmentsDAL(attachmentBE);
                attachmentDAL    = null;
            }
            catch (Exception ex)
            {
            }
            finally { }
            return(AttachmentBEList);
        }
示例#4
0
 public static bool Attachment_Del(Attachment model)
 {
     return(AttachmentDAL.Attachment_Del(model));
 }
示例#5
0
 public static bool Attachment_SourceID_Upd(Attachment model)
 {
     return(AttachmentDAL.Attachment_SourceID_Upd(model));
 }
示例#6
0
 public bool Attachment_ADD(Attachment model)
 {
     return(AttachmentDAL.Attachment_ADD(model));
 }
示例#7
0
 public Attachment Attachment_Get(string FileID)
 {
     return(AttachmentDAL.Attachment_Get(FileID));
 }