/// <summary> /// Elimina un elemento existente /// </summary> /// <param name="entity">Entidad con datos</param> public void Delete(Vehiculo entity) { _repository.Delete(entity); _repository.Save(); }
public bool Delete(int id) { return(vehiculorepository.Delete(id)); }