예제 #1
0
        public async Task <List <Notes> > GetNoteViewAsync(int ref_id, int limit)
        {
            List <Notes> notes = new List <Notes>();

            try
            {
                notes = await _NotesAndDoc.GenericNote <Notes>(ref_id, note_type, limit);
            }
            catch (Exception ex)
            {
                var logger = _loggerFactory.CreateLogger("internal_error_log");
                logger.LogInformation("Problem happened in selecting the data for purchaseorders Get Note with message" + ex.Message);
            }

            return(notes);
        }
예제 #2
0
        public async Task <object> DetailsNotesAndDoc(int id)
        {
            dynamic vendorNoteAndDoc = new ExpandoObject();

            try
            {
                vendorNoteAndDoc.note = await _NotesAndDoc.GenericNote <Notes>(id, note_type, 1);

                vendorNoteAndDoc.doc = await _NotesAndDoc.GenericGetDocAsync <Documents>(id, note_type, 1);
            }
            catch (Exception ex)
            {
                var logger = _loggerFactory.CreateLogger("internal_error_log");
                logger.LogInformation("Problem happened in selecting the data for listpageviewAsync with message" + ex.Message);
            }

            return(vendorNoteAndDoc);
        }