public IList <Producto> GetByCodigo(int idEmpresa, string codigo) { try { return(repository.GetByCodigo(idEmpresa, codigo)); } catch (Exception ex) { throw new Exception(ex.Message); } }