Esempio n. 1
0
 public async Task Put([FromBody] EventEntity entity)
 {
     await _eventsRepo.Update(entity);
 }
Esempio n. 2
0
 public async Task Create(EventEntity eventEntity)
 {
     eventEntity.Created = DateTime.Now;
     eventEntity.Deleted = false;
     await _eventsCollection.InsertOneAsync(eventEntity);
 }
Esempio n. 3
0
 public async Task Post([FromBody] EventEntity entity)
 {
     await _eventsRepo.Create(entity);
 }