예제 #1
0
 public InviteCodeEntity GetInviteCodeById(int id)
 {
     try
     {
         return(_invitecodeRepository.GetById(id));;
     }
     catch (Exception e)
     {
         _log.Error(e, "数据库操作出错");
         return(null);
     }
 }
예제 #2
0
 public EventEntity GetEventById(int id)
 {
     try
     {
         return(_eventRepository.GetById(id));
     }
     catch (Exception e)
     {
         _log.Error(e, "数据库操作出错");
         return(null);
     }
 }