예제 #1
0
        public ActionResult <EffortGradeLlibraryCategoryListViewModel> GetAllEffortGradeLlibraryCategoryList(EffortGradeLlibraryCategoryListViewModel effortGradeLlibraryCategoryListViewModel)
        {
            EffortGradeLlibraryCategoryListViewModel effortGradeLlibraryCategoryList = new EffortGradeLlibraryCategoryListViewModel();

            try
            {
                effortGradeLlibraryCategoryList = _gradeService.GetAllEffortGradeLlibraryCategoryList(effortGradeLlibraryCategoryListViewModel);
            }
            catch (Exception es)
            {
                effortGradeLlibraryCategoryList._message = es.Message;
                effortGradeLlibraryCategoryList._failure = true;
            }
            return(effortGradeLlibraryCategoryList);
        }
예제 #2
0
        /// <summary>
        /// Get All EffortGrade Llibrary Category List
        /// </summary>
        /// <param name="effortGradeLlibraryCategoryListViewModel"></param>
        /// <returns></returns>
        public EffortGradeLlibraryCategoryListViewModel GetAllEffortGradeLlibraryCategoryList(EffortGradeLlibraryCategoryListViewModel effortGradeLlibraryCategoryListViewModel)
        {
            EffortGradeLlibraryCategoryListViewModel effortGradeLlibraryCategoryListModel = new EffortGradeLlibraryCategoryListViewModel();

            try
            {
                if (TokenManager.CheckToken(effortGradeLlibraryCategoryListViewModel._tenantName + effortGradeLlibraryCategoryListViewModel._userName, effortGradeLlibraryCategoryListViewModel._token))
                {
                    effortGradeLlibraryCategoryListModel = this.gradeRepository.GetAllEffortGradeLlibraryCategoryList(effortGradeLlibraryCategoryListViewModel);
                }
                else
                {
                    effortGradeLlibraryCategoryListModel._failure = true;
                    effortGradeLlibraryCategoryListModel._message = TOKENINVALID;
                }
            }
            catch (Exception es)
            {
                effortGradeLlibraryCategoryListModel._failure = true;
                effortGradeLlibraryCategoryListModel._message = es.Message;
            }
            return(effortGradeLlibraryCategoryListModel);
        }