Ejemplo n.º 1
0
        public string GetAllNoteTypes(string accessToken)
        {
            logMethodInvocation();
            checkAccessToken(accessToken);
            try
            {
                using (CFIEntities db = new CFIEntities())
                {
                    var query =
                        from noteType in db.NoteTypes
                        select noteType;

                    NoteTypeInfo[] noteTypes = ConversionUtils.ToNoteTypeInfoArray(query.ToList <NoteType>());
                    return(NoteTypeInfo.BuildNoteTypesXml(noteTypes));
                }
            }
            catch (Exception ex)
            {
                logException(ex);
                return(null);
            }
        }