Пример #1
0
        public async Task UpdateFaq(FaqObject updatedFaqObject)
        {
            var obj = await GetFaq(updatedFaqObject.Id);

            obj.Answer   = updatedFaqObject.Answer;
            obj.Question = updatedFaqObject.Question;
            await RavenSession.StoreAsync(obj);
        }
Пример #2
0
 public async Task AddNewFaq(FaqObject newFaq)
 {
     await RavenSession.StoreAsync(newFaq);
 }