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