Example #1
0
 /// <summary>
 /// query signal record by lanbuda expression
 /// </summary>
 /// <param name="predicate"></param>
 /// <returns></returns>
 public MailConfigDto Get(Expression <Func <MailConfig, bool> > predicate)
 {
     try
     {
         return(Mapper.Map <MailConfigDto>(_repository.FirstOrDefault(predicate)));
     }
     catch (Exception ex)
     {
         _log.LogError("MailConfigAppService Get lanbuda error occured:" + ex.Message);
         return(null);
     }
 }