예제 #1
0
        public async Task <List <Notes> > GetItemNotesViewAsync(string ref_ids)
        {
            List <Notes> notes = new List <Notes>();

            try
            {
                notes = await _NotesAndDoc.GenericNotes <Notes>(ref_ids, note_type);
            }
            catch (Exception ex)
            {
                var logger = _loggerFactory.CreateLogger("internal_error_log");
                logger.LogInformation("Problem happened in selecting the data for photoshoot Notes with message" + ex.Message);
            }
            return(notes);
        }
        public async Task <List <Notes> > GetItemNotesViewAsync(int poid)
        {
            List <Notes> notes = new List <Notes>();

            try
            {
                string ref_ids = string.Join(",", await _ItemsHelper.GetItemIds(poid));
                notes = await _NotesAndDoc.GenericNotes <Notes>(ref_ids, note_type);
            }
            catch (Exception ex)
            {
                var logger = _loggerFactory.CreateLogger("internal_error_log");
                logger.LogInformation("Problem happened in selecting the data for item Get Notes with message" + ex.Message);
            }
            return(notes);
        }