public Entity.AdminRule Get(Guid id) { try { return(_adminRuleRepository.FindBy(r => r.Guid == id).Select(p => Mapper.Configuration.Mapper.Map <Entity.AdminRule>(p)).FirstOrDefault()); } catch (Exception ex) { _logger.ErrorLog(ex, "AdminRuleManager.Get " + ex); return(null); } }
public Entity.AdminRule Get(Guid id) { try { return(_adminRuleRepository.FindBy(r => r.Guid == id).Select(p => Mapper.Configuration.Mapper.Map <Entity.AdminRule>(p)).FirstOrDefault()); } catch (Exception ex) { _logger.ErrorLog(ex, this.GetType().Name, MethodBase.GetCurrentMethod().Name); return(null); } }