public void EditRol(Rol rol)
 {
     _databaseModel.Entry(rol).State = EntityState.Modified;
     _databaseModel.SaveChanges();
 }
 private void EditRol(Rol rol)
 {
     rol.UpdatedAt = DateTime.Now;
     _rolesRepository.EditRol(rol);
 }
 public void AddRol(Rol rol)
 {
     _databaseModel.Roles.Add(rol);
     _databaseModel.SaveChanges();
 }
 private void AddRol(Rol rol)
 {
     rol.CreatedAt = DateTime.Now;
     rol.UpdatedAt = DateTime.Now;
     _rolesRepository.AddRol(rol);
 }