public QueryResponse <Supplier> GetAllSuppliersByInactive() { QueryResponse <Supplier> responseSuppliers = supplierDAO.GetAllSuppliersByInactive(); List <Supplier> temp = responseSuppliers.Data; foreach (Supplier item in temp) { item.CNPJ = item.CNPJ.Insert(2, ".").Insert(6, ".").Insert(10, "/").Insert(15, "-"); item.PhoneNumber = item.PhoneNumber.Insert(0, "(").Insert(3, ")").Insert(9, "-"); } return(responseSuppliers); }