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