Ejemplo n.º 1
0
        public void Modificar(PeriodViewModel pPeriodViewModel)
        {
            periods operiods = oRepositorio.FindById(pPeriodViewModel.period_id);

            operiods.name = pPeriodViewModel.name;

            operiods.user_id_modified = pPeriodViewModel.user_id_modified;
            operiods.start_date       = pPeriodViewModel.start_date;
            operiods.end_date         = pPeriodViewModel.end_date;

            operiods.date_modified = DateTime.Now;
            oRepositorio.Update(operiods);
            oUnitOfWork.SaveChanges();
        }