Exemple #1
0
        public void Update(HistoricoVM viewModel)
        {
            var model = HistoricoAdapter.ToModel(viewModel, true);

            this._historicoRepository.Update(model);
            this._historicoRepository.SaveChanges();
        }
Exemple #2
0
 public List <HistoricoVM> All()
 {
     return(this._historicoRepository.GetAll(true).Select(x => HistoricoAdapter.ToViewModel(x, true)).ToList());
 }
Exemple #3
0
 public HistoricoVM Detail(int id)
 {
     return(HistoricoAdapter.ToViewModel(this._historicoRepository.Get(id), true));
 }