protected override void Init() { Permisos = new List <TipoPermiso>(); EventCommand = "list"; TipoPermisoEntity = new TipoPermiso(); base.Init(); }
public bool Delete(TipoPermiso entity) { //TODO: ELIMINA UN EMEPLEADO using (var context = new PermisosAppDbContext()) { context.Entry(entity).State = System.Data.Entity.EntityState.Deleted; context.SaveChanges(); } return(true); }
protected override void Delete() { TipoPermisoManager mgr = new TipoPermisoManager(); Entity = new TipoPermiso(); Entity.Id = Convert.ToInt32(EventArgument); mgr.Delete(Entity); Get(); base.Delete(); }