/// <summary> /// Изменить запись /// </summary> protected void Edit(ServiceCounter item) { serviceCounter = item; ServiceCounterModel = new ServiceCounterViewModel() { ServiceId = serviceCounter.Service.IdService.ToString(), DateCount = DateTime.Parse(serviceCounter.DateCount), ValueCounter = serviceCounter.ValueCounter }; OpenModal(); }
protected void CloseModal() { serviceCounter = default; ServiceCounterModel = new ServiceCounterViewModel(); modal.Close(); }