public QueryResponse <Supplier> GetSuppliersById(int id) { QueryResponse <Supplier> responseSuppliers = supplierDAO.GetById(id); 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); }