Пример #1
0
        public ViewModel.ViewClassReport Add(ViewModel.ViewClassReport report)
        {
            ClassReport cr = _repository.Add(ViewClassReport.ToEntity(report));

            report.Id = cr.Id;
            return(report);
        }
Пример #2
0
 public bool Edit(ViewModel.ViewClassReport report)
 {
     _repository.Update(ViewClassReport.ToEntity(report));
     _repository.Save();
     return(true);
 }