Exemple #1
0
        public GetConditionsResponse GetConditions()
        {
            GetConditionsResponse response = new GetConditionsResponse();

            try
            {
                IEnumerable <ConditionView> Conditions = _conditionRepository.FindAll()
                                                         .ConvertToConditionViews();

                response.ConditionViews = Conditions.OrderBy(o => o.ConditionTitle);
            }
            catch (Exception ex)
            {
            }

            return(response);
        }