示例#1
0
 public async Task <Protocols.Response.Rss> GetById(string id)
 {
     return(new Protocols.Response.Rss
     {
         ResultCode = Code.ResultCode.Success,
         Data = (await _mongoDbRss.FindOneAsyncById(id))?.ToProtocol()
     });
 }
示例#2
0
 public async Task <Protocols.Response.Notification> Get(string id)
 {
     return(new Protocols.Response.Notification
     {
         ResultCode = ResultCode.Success,
         Data = (await _mongoDbNotification.FindOneAsyncById(id))?.ToProtocol()
     });
 }