public async Task <int> CreateAsync(MonitoringEventModel model) { do { model.Code = CodeGenerator.Generate(); }while (DbSet.Any(d => d.Code.Equals(model.Code))); this.MonitoringEventLogic.CreateModel(model); return(await DbContext.SaveChangesAsync()); }
public async Task <int> UpdateAsync(int id, MonitoringEventModel model) { this.MonitoringEventLogic.UpdateModelAsync(id, model); return(await DbContext.SaveChangesAsync()); }
public Task <int> UpdateAsync(int id, MonitoringEventModel model) { throw new NotImplementedException(); }