public async Task <int> CreateAsync(MonitoringSpecificationMachineModel model)
        {
            do
            {
                model.Code = CodeGenerator.Generate();
            }while (DbSet.Any(d => d.Code.Equals(model.Code)));

            this.MonitoringSpecificationMachineLogic.CreateModel(model);
            return(await DbContext.SaveChangesAsync());
        }
        public async Task <int> UpdateAsync(int id, MonitoringSpecificationMachineModel model)
        {
            await this.MonitoringSpecificationMachineLogic.UpdateModelAsync(id, model);

            return(await DbContext.SaveChangesAsync());
        }
 public Task <int> UpdateAsync(int id, MonitoringSpecificationMachineModel model)
 {
     throw new NotImplementedException();
 }