예제 #1
0
 /// <summary>
 /// Business method to call repository To get the attributes
 /// </summary>
 /// <returns></returns>
 public List <AttributesViewModel> GetAttributesForConfig()
 {
     try
     {
         List <AttributesBusinessModel> attributes = _configurationsRepository.GetAttributesForConfig();
         return(BusinessMapper.AttributesBusinessModelToAttributesViewModel(attributes));
     }
     catch (Exception ex)
     {
         _logger.Log(ex, LogLevel.Error, ex.Message);
         return(null);
     }
 }